?last ( seq -- elt/f )
Factor handbook > The language > Collections > Sequence operations > Accessing sequence elements

Prev:last ( seq -- elt )
Next:first2 ( seq -- first second )


Vocabulary
sequences

Inputs and outputs
seqa sequence
elt/fan object or f


Word description
A forgiving version of last. If the sequence is empty, or if the sequence is f, simply outputs f.

Definition