Bigraph.IntSetFinite sets of non negative integers.
val pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringval to_yojson : t -> Yojson.Safe.tval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_orval empty : tval singleton : int -> tval cardinal : t -> intval elements : t -> int listval iter : (int -> unit) -> t -> unitval fold : (int -> 'acc -> 'acc) -> t -> 'acc -> 'accval is_empty : t -> boolval mem : int -> t -> boolval for_all : (int -> bool) -> t -> boolval exists : (int -> bool) -> t -> boolval to_list : t -> int listval of_list : int list -> tval choose : t -> intReturn an arbitrary element of the set. Raises Failure if the set is empty.
val is_singleton : t -> boolTest whether a set is a singleton or not.
val of_int : int -> tof_int n returns set {0, 1, ...., n - 1}, with n non negative.
off i s adds offset i to all the elements of set s. Offset i must be non negative.
Compute an isomorphism to fix the numbering of a set. For example, the isomorphism for set {2, 5, 6, 7} is {(2,0), (5,1), (6,2), (7,3)}.
apply iso s applies iso to each element of s. Elements not mapped by iso are ignored.