Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

bitset

bitset

bitset -- persistent set of unsigned integers

Functions

create a string representation of a bitset of the form "{2, 4}"

redefines:

alternative for has using []
set the given bit
test if the given bit is part of this bitset
union of two bitsets
get the highest bit in this bitset

Type Features

equality
an empty bitset
monoid of bitset with infix ∪ operation.