package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
sha256=966fc8667c2aa9830e64950d2de74bd564a65d60e1f50cfd3dc1e99ef106dc47
sha512=6423ce04d784ba521a7f49fabdafbe036e2dd80cd08ca999fdc6767262d7f12aa4e5002d65efd4c568b343eaabf4d680191c88334d629e1ca0156084531e9e0b

doc/shakuhachi.config/SkhcConfig/Section/index.html

Module SkhcConfig.SectionSource

Operations on a section. No guarantees are made whether duplicated keys will all appear or only one of them will exist.

Sourcetype t

type representing a section.

Sourceval init : string -> (string * string) list -> t

init name keyvals creates a new section named name and having key/value pairs intialiazed with keyvals.

Sourceval assoc : string -> t -> string option

assoc key section tries to find the value associated with key in section. Returns None if no key key exists.

Sourceval name : t -> string

name section retuns the section's name.

Sourceval values : t -> (string * string) list

values section returns the key/value pairs in sections.

Sourceval to_channel : out_channel -> t -> unit

to_channel oc section prints a representation of section to oc.

Sourceval to_string : t -> string

to_string section returns a string representation of section.

  • since 0.2.0
Sourceval pp : Format.formatter -> t -> unit

to_channel format section prints a representation of section to format.