core-and-more

Includes core, and some more useful extensions
IN THIS PACKAGE

Parameters

module D : sig ... end

Signature

module D : sig ... end
type elt = D.t
val create : int -> D.t Core.Hash_set.t
val empty : 'a -> D.t Core.Hash_set.t
val singleton : D.t -> D.t Core.Hash_set.t
val singleton_sized : int -> D.t -> D.t Core.Hash_set.t
val add : D.t -> t -> unit
val remove : D.t -> t -> unit
val size : t -> int
val is_empty : t -> bool
val contains : D.t -> t -> bool
val fold : ( elt -> 'b -> 'b0 ) -> t -> 'b1 -> 'b2
val fold2 : ( elt -> elt -> 'a -> 'a ) -> t -> t -> 'b -> 'c
val exists : ( 'a -> bool ) -> 'a Core.Hash_set.t -> bool
val as_list : 'a Core.Hash_set.t -> 'a list
val iter : ( 'a -> unit ) -> 'a Core.Hash_set.t -> unit
val pp : ( Format.formatter -> 'a -> unit ) -> Format.formatter -> 'a Core.Hash_set.t -> unit
val update : ( elt option -> unit ) -> elt -> t -> unit
val copy : t -> t