Next: , Previous: , Up: Bit Strings   [Contents][Index]


9.1 Construction of Bit Strings

procedure: make-bit-string k initialization

Returns a newly allocated bit string of length k. If initialization is #f, the bit string is filled with 0 bits; otherwise, the bit string is filled with 1 bits.

(make-bit-string 7 #f)                  ⇒  #*0000000
procedure: bit-string-allocate k

Returns a newly allocated bit string of length k, but does not initialize it.

procedure: bit-string-copy bit-string

Returns a newly allocated copy of bit-string.