package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

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.