package colibri2

  1. Overview
  2. Docs

Use enum for deforesting

type 'a t
val for_all : ('a -> bool) -> 'a t -> bool
val exists : ('a -> bool) -> 'a t -> bool
val is_empty : 'a t -> bool
val fold : ('acc -> 'a -> 'acc) -> 'acc -> 'a t -> 'acc
val iter : ('a -> unit) -> 'a t -> unit
val list_rev : 'a t -> 'a list

return the enumeration in the reverse order

val from_list : ?filter:('b -> bool) -> map:('b -> 'a) -> 'b list -> 'a t

Create Enum

val from_bag : ?filter:('b -> bool) -> map:('b -> 'a) -> 'b Bag.t -> 'a t
OCaml

Innovation. Community. Security.