package core-and-more

  1. Overview
  2. Docs

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 -> 'b) -> t -> 'b -> 'b
val fold2 : (elt -> elt -> 'a -> 'a) -> t -> t -> 'a -> 'a
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 : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a Core.Hash_set.t -> unit
val update : (elt option -> unit) -> elt -> t -> unit
val copy : t -> t
OCaml

Innovation. Community. Security.