Next: bitvectors conv, Previous: bitvectors inspection, Up: bitvectors [Index]
The following bindings are exported by the library (vicare containers
bitvectors)
.
Set the bit at bit-index in the <bitvector>
to one if
bool is non–false, or to zero if bool is #f
.
Return a boolean representing the bit at bit-index in the
<bitvector>
.
Set all the bits to true or to false.
Invert the bit at bit-index.
Apply the bitwise NOT to the instance and return a new <bitvector>
object holding the result.
Mutate this instance by applying the bitwise NOT operation and storing the result in the instance itself. The return value is the instance object itself.
Apply the bitwise AND, inclusive OR or exclusive OR to the instance and
B, then return a new <bitvector>
object representing the
result. B must have the same length of the instance.
Mutate this instance by applying the bitwise AND, inclusive OR or exclusive OR to the instance and B and storing the result in the instance itself. B must have the same length of the instance.
Return an exact integer being the number of bits set to true.
Return an exact integer being the offset of the first bit set to true; if all the bits are set to false: return -1.
Next: bitvectors conv, Previous: bitvectors inspection, Up: bitvectors [Index]