Handbook
Glossary
fourth ( seq -- fourth )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Accessing sequence elements
Prev:
third ( seq -- third )
Next:
?first ( seq -- elt/f )
Vocabulary
sequences
Inputs
seq
a
sequence
Outputs
fourth
the fourth element of the sequence
Word description
Outputs the fourth element of the sequence.
Errors
Throws an error if the sequence contains less than four elements.
Definition
USING:
kernel
;
IN:
sequences
:
fourth
( seq -- fourth )
3
swap
nth
;
inline