first3 ( seq -- first second third )
Factor handbook > The language > Collections > Sequence operations > Accessing sequence elements

Prev:first2 ( seq -- first second )
Next:first4 ( seq -- first second third fourth )


Vocabulary
sequences

Inputs and outputs
seqa sequence
firstthe first element
secondthe second element
thirdthe third element


Word description
Pushes the first three elements of a sequence.

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

Definition