1vector ( x -- vector ) (original) (raw)

1vector ( x -- vector )
Factor handbook » The language » Collections » Vectors

Prev: ( n -- vector )

Vocabulary
vectors

Inputs

x an object

Outputs

vector a vector

Word description
Create a new vector with one element.

Definition

USING: arrays kernel ;

IN: vectors

: 1vector ( x -- vector ) 1array 1 vector boa ; inline