module BatPSet:Polymorphic setssig..end
The functions below are now integrated as part of the BatSet
module. Please go there to find detailed documentation.
type 'a t
include BatEnum.Enumerable
include BatInterfaces.Mappable
val empty : 'a tval create : ('a -> 'a -> int) -> 'a tval singleton : ?cmp:('a -> 'a -> int) -> 'a -> 'a tval is_empty : 'a t -> boolval mem : 'a -> 'a t -> boolval add : 'a -> 'a t -> 'a tval remove : 'a -> 'a t -> 'a tval iter : ('a -> unit) -> 'a t -> unitval map : ('a -> 'a) -> 'a t -> 'a tval filter : ('a -> bool) -> 'a t -> 'a tval filter_map : ('a -> 'b option) -> 'a t -> 'b tval fold : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'bval exists : ('a -> bool) -> 'a t -> boolval cardinal : 'a t -> intval choose : 'a t -> 'aval min_elt : 'a t -> 'aval max_elt : 'a t -> 'aval enum : 'a t -> 'a BatEnum.tval of_enum : 'a BatEnum.t -> 'a tval of_enum_cmp : cmp:('a -> 'a -> int) -> 'a BatEnum.t -> 'a tval of_list : 'a list -> 'a tval for_all : ('a -> bool) -> 'a t -> boolval partition : ('a -> bool) -> 'a t -> 'a t * 'a tval split : 'a -> 'a t -> 'a t * bool * 'a tval filter : ('a -> bool) -> 'a t -> 'a tval pop : 'a t -> 'a * 'a tval union : 'a t -> 'a t -> 'a tval diff : 'a t -> 'a t -> 'a tval intersect : 'a t -> 'a t -> 'a tval subset : 'a t -> 'a t -> boolval print : ?first:string ->
?last:string ->
?sep:string ->
('a BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output -> 'b t -> unit