package bonsai

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Provides a nice way of folding through a Computation.t, e.g.

let count_uids =
  object
    inherit [int] fold as super

    method! id id acc =
      let acc = acc + 1 in
      super#id id acc
  end
in
count_uids#computation t 0
method bool : bool -> 'acc -> 'acc
method computation : Computation.t -> 'acc -> 'acc
method computation_kind : Computation.kind -> 'acc -> 'acc
method id : int -> 'acc -> 'acc
method lazy_ : ('a -> 'acc -> 'acc) -> 'a lazy_t -> 'acc -> 'acc
method list : ('a -> 'acc -> 'acc) -> 'a list -> 'acc -> 'acc
method node_path : Bonsai__.Node_path.t -> 'acc -> 'acc
method option : ('a -> 'acc -> 'acc) -> 'a option -> 'acc -> 'acc
method source_code_position : Core.Source_code_position.t -> 'acc -> 'acc
method value : Value.t -> 'acc -> 'acc
method value_kind : Value.kind -> 'acc -> 'acc
OCaml

Innovation. Community. Security.