package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.2.tar.gz
sha256=c72807d303de137441b643fec1c7630c930ebc792b576783c7961b237c2114db
sha512=770f878bbdac8033d90e904ce8e9c84fc75331c7ff9b35e2204fafe3746f432f2664296dac91942a788b82a2da07478d91b76ed85cd880758d2def8a55144840

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.