17 lines
837 B
Plaintext
17 lines
837 B
Plaintext
IN: bit-arrays
|
|
USING: arrays help kernel kernel-internals prettyprint strings
|
|
vectors sbufs ;
|
|
|
|
HELP: bit-array
|
|
{ $description "The class of fixed-length bit arrays. See " { $link "syntax-bit-arrays" } " for syntax and " { $link "bit-arrays" } " for general information." } ;
|
|
|
|
HELP: <bit-array> ( n -- bit-array )
|
|
{ $values { "n" "a non-negative integer" } { "bit-array" "a new " { $link bit-array } } }
|
|
{ $description "Creates a new bit array with the given length and all elements initially set to " { $link f } "." }
|
|
{ $see-also <array> <quotation> <string> <sbuf> <vector> } ;
|
|
|
|
HELP: >bit-array
|
|
{ $values { "seq" "a sequence" } { "bit-array" bit-array } }
|
|
{ $description "Outputs a freshly-allocated bit array whose elements have the same boolean values as a given sequence." }
|
|
{ $see-also >array >string >sbuf >vector >quotation } ;
|