Bitstring.Sinclude Core_kernel.Container.S1 with type 'a t := 'a tval mem : 'a t -> 'a -> equal:( 'a -> 'a -> bool ) -> boolval length : 'a t -> intval is_empty : 'a t -> boolval iter : 'a t -> f:( 'a -> unit ) -> unitval fold : 'a t -> init:'accum -> f:( 'accum -> 'a -> 'accum ) -> 'accumval fold_result :
'a t ->
init:'accum ->
f:( 'accum -> 'a -> ( 'accum, 'e ) Base__.Result.t ) ->
( 'accum, 'e ) Base__.Result.tval fold_until :
'a t ->
init:'accum ->
f:
( 'accum ->
'a ->
( 'accum, 'final ) Base__Container_intf.Continue_or_stop.t ) ->
finish:( 'accum -> 'final ) ->
'finalval exists : 'a t -> f:( 'a -> bool ) -> boolval for_all : 'a t -> f:( 'a -> bool ) -> boolval count : 'a t -> f:( 'a -> bool ) -> intval sum :
(module Base__Container_intf.Summable with type t = 'sum) ->
'a t ->
f:( 'a -> 'sum ) ->
'sumval find : 'a t -> f:( 'a -> bool ) -> 'a optionval find_map : 'a t -> f:( 'a -> 'b option ) -> 'b optionval to_list : 'a t -> 'a listval to_array : 'a t -> 'a arrayval min_elt : 'a t -> compare:( 'a -> 'a -> int ) -> 'a optionval max_elt : 'a t -> compare:( 'a -> 'a -> int ) -> 'a optionval of_list : 'a list -> 'a tof_list lst constructs a bitstring from a list. Identity function: no transformation is applied.
val init : int -> f:( int -> 'a ) -> 'a tinit n ~f creates a bitstring of length n with elements f 0, ..., f (n-1).