Module Container.Make_gen

Parameters

module T : sig ... end

Signature

val length : (_, _) T.t -> int
val is_empty : (_, _) T.t -> bool
val mem : ('a, _) T.t -> 'a T.elt -> equal:('a T.elt -> 'a T.elt -> bool) -> bool
val iter : ('a, _) T.t -> f:('a T.elt -> unit) -> unit
val fold : ('a, _) T.t -> init:'acc -> f:('acc -> 'a T.elt -> 'acc) -> 'acc
val fold_result : ('a, _) T.t -> init:'acc -> f:('acc -> 'a T.elt -> ('acc, 'e) Result.t) -> ('acc, 'e) Result.t
val fold_until : ('a, _) T.t -> init:'acc -> f:('acc -> 'a T.elt -> ('acc, 'final) Continue_or_stop.t) -> finish:('acc -> 'final) -> 'final
val exists : ('a, _) T.t -> f:('a T.elt -> bool) -> bool
val for_all : ('a, _) T.t -> f:('a T.elt -> bool) -> bool
val count : ('a, _) T.t -> f:('a T.elt -> bool) -> int
val sum : (module Summable with type t = 'sum) -> ('a, _) T.t -> f:('a T.elt -> 'sum) -> 'sum
val find : ('a, _) T.t -> f:('a T.elt -> bool) -> 'a T.elt option
val find_map : ('a, _) T.t -> f:('a T.elt -> 'b option) -> 'b option
val to_list : ('a, _) T.t -> 'a T.elt list
val to_array : ('a, _) T.t -> 'a T.elt array
val min_elt : ('a, _) T.t -> compare:('a T.elt -> 'a T.elt -> int) -> 'a T.elt option
val max_elt : ('a, _) T.t -> compare:('a T.elt -> 'a T.elt -> int) -> 'a T.elt option