?nth ( n seq -- elt/f )
Factor handbook » The language » Collections » Sequence operations » Accessing sequence elements

Next:first ( seq -- first )


Vocabulary
sequences

Inputs
nan integer
seqa sequence


Outputs
elt/fan object or f


Word description
A forgiving version of nth. If the index is out of bounds, or if the sequence is f, simply outputs f.

Definition