Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Module representing a chapter. A chapter can be seen as a title with a content.
val of_content : string -> 'a -> 'a t
of_content title content
creates a new chapter with title
and content
.
compare cmp lhs rhs
compares lhs
and rhs
by their title with String.compare
and by cmp
if they have the same title
.
val title : 'a t -> string
title chapter
returns the title of chapter
.
val content : 'a t -> 'a
content chapter
returns the content of chapter
.