Frama_c_kernel.BagList with constant-time concat operation.
val empty : 'a tval elt : 'a -> 'a tval list : 'a list -> 'a tval iter : ('a -> unit) -> 'a t -> unitval fold_left : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'bval fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'bval length : 'a t -> intval is_empty : 'a t -> boolval singleton : 'a t -> 'a optionval elements : 'a t -> 'a listMight have n^2 complexity in worst cases. It might be better to use a Vector to reach linear complexity.
val sort : ('a -> 'a -> int) -> 'a t -> 'a listThe returned list preserves duplicates and order of equals elements. Uses Merge Sort (from standard List module), but might have n^2 complexity in worst cases. It might be better to use a Vector to reach linear complexity.