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