Tezos_raw_protocol_015_PtLimaPt.Bitsetval encoding : t Tezos_protocol_environment_015_PtLimaPt.Data_encoding.tval empty : tA bitset encoding the empty set.
val mem :
t ->
int ->
bool Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultmem field i returns true iff i has been added in field.
This functions returns Invalid_input i if i is negative.
val add :
t ->
int ->
t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultadd field i returns a new bitset which contains i in addition to the previous integers of field.
This functions returns Invalid_input i if i is negative.
val from_list :
int list ->
t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultfrom_list positions folds add over the positions starting from empty. This function returns Invalid_input i if i is negative and appears in positions.
inter set_l set_r returns set which is result of the intersection of set_l and set_r.
diff set_l set_r returns a set containing fiels in set_l that are not in set_r.
val occupied_size_in_bits : t -> intoccupied_size_in_bits bitset returns the current number of bits occupied by the bitset.