Previous: , Up: bitvectors   [Index]


43.4 Conversion operations on bitvectors

The following bindings are exported by the library (vicare containers bitvectors).

Method on <bitvector>: (list-of <boolean>) list
Method on <bitvector>: (vector-of <boolean>) vector

Return a list or vector filled with boolean values representing the bits of the bitvector. The boolean at index zero in the returned sequence corresponds to the bit at index zero in the bitvector.

Method on <bitvector>: <non-negative-exact-integer> non-negative-exact-integer

Return an exact integer representing the bits in the instance.

Function: <bitvector> list->bitvector {ell (list-of <boolean>)}
Function: <bitvector> vector->bitvector {vec (vector-of <boolean>)}

Build and return a new <bitvector> object representing the values in the list ell or vector vec.

Function: <bitvector> non-negative-exact-integer->bitvector {N <non-negative-exact-integer>}

Build and return a new <bitvector> object being the bitwise representation given exact integer.