Construction of Bit Strings - MIT/GNU Scheme 7.7.91
Description: MIT/GNU Scheme 7.7.91

Next: Selecting Bit String Components, Previous: Bit Strings, Up: Bit Strings

### 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.