Handbook
Glossary
>byte-vector ( seq -- byte-vector )
Factor handbook
»
The language
»
Collections
»
Byte vectors
Prev:
byte-vector? ( object -- ? )
Next:
<byte-vector> ( n -- byte-vector )
Vocabulary
byte-vectors
Inputs
seq
a
sequence
Outputs
byte-vector
a
byte-vector
Word description
Outputs a freshly-allocated byte vector with the same elements as a given sequence.
Errors
Throws an error if the sequence contains elements other than integers.
Definition
USING:
byte-arrays
kernel
sequences
;
IN:
byte-vectors
:
>byte-vector
( seq -- byte-vector )
>byte-array
dup
length
byte-vector
boa
;