first4 ( seq -- first second third fourth )
Factor handbook » The language » Collections » Sequence operations » Accessing sequence elements

Prev:first3 ( seq -- first second third )
Next:last2 ( seq -- penultimate ultimate )


Vocabulary
sequences

Inputs
seqa sequence


Outputs
firstthe first element
secondthe second element
thirdthe third element
fourththe fourth element


Word description
Pushes the first four elements of a sequence.

Errors
Throws an error if the sequence has less than four elements.

Definition