Module Sidekick_util.Bag
Ordered Bag of Elements
A data structure where we can have duplicate elements, optimized for fast concatenation and size.
val empty : 'a tval is_empty : _ t -> boolval return : 'a -> 'a tval cons : 'a -> 'a t -> 'a tval append : 'a t -> 'a t -> 'a tval to_iter : 'a t -> 'a Iter.tval fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aval iter : ('a -> unit) -> 'a t -> unitval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> boolAre the two bags equal, element wise?