Code.Set
Sets of codes.
Note. These signatures are the same as those from Stdlib.Set.S
but we restrict access to the module in case we want to switch to something less heavy weight for sets of two or three elements.
val empty : t
empty
is the empty set of codes.
val is_empty : t -> bool
empty s
is true
iff s
is empty.
val cardinal : t -> int
cardinal s
is the number of elements in s
.
min_elt s
is the minimal element in s
note that if Byte
is in s
then this is Byte
.
fold f s acc
folds f
over the elements of s
starting with acc
.
val pp : t B0_std.Fmt.t
pp
formats sets.
val pp_human : t B0_std.Fmt.t
pp_human
is a sentence of the form "codes a, b, c"