package oepub

  1. Overview
  2. Docs

Module Book.ChapterSource

Module representing a chapter. A chapter can be seen as a title with a content.

Sourcetype 'a t

the type representing a chapter of content 'a.

Sourceval of_content : string -> 'a -> 'a t

of_content title content creates a new chapter with title and content.

Sourceval compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int

compare cmp lhs rhs compares lhs and rhs by their title with String.compare and by cmp if they have the same title.

Sourceval title : 'a t -> string

title chapter returns the title of chapter.

Sourceval content : 'a t -> 'a

content chapter returns the content of chapter.

OCaml

Innovation. Community. Security.