1byte-array ( x -- byte-array ) (original) (raw)

1byte-array ( x -- byte-array )
Factor handbook » The language » Collections » Byte arrays

Prev: ( n -- byte-array )
Next: 2byte-array ( x y -- byte-array )

Vocabulary
byte-arrays

Inputs

x an object

Outputs

byte-array a byte-array

Word description
Creates a new byte-array with one element.

See also
2byte-array, 3byte-array, 4byte-array

Definition

USING: sequences ;

IN: byte-arrays

: 1byte-array ( x -- byte-array ) B{ } 1sequence ; inline