Module Odoc_utils.TreeSource

Sourcetype 'a tree = {
  1. node : 'a;
  2. children : 'a forest;
}
Sourceand 'a forest = 'a tree list
Sourceval leaf : 'a -> 'a tree
Sourcemodule type S = sig ... end
include S with type 'a t = 'a tree
Sourcetype 'a t = 'a tree
Sourceval fold_left : f:('acc -> 'a -> 'acc) -> 'acc -> 'a t -> 'acc
Sourceval iter : f:('a -> unit) -> 'a t -> unit
Sourceval map : f:('a -> 'b) -> 'a t -> 'b t
Sourceval to_json : ('a -> Json.json) -> 'a t -> Json.json
Sourcemodule Forest : sig ... end