Handbook
Glossary
set-third ( third seq -- )
Vocabulary
sequences
Inputs
third
an
object
seq
a
sequence
Outputs
None
Word description
Sets the third element of a sequence.
Examples
USING: prettyprint kernel sequences ; { 1 2 3 4 } 5 over set-third .
{ 1 2 5 4 }
See also
set-first
,
set-second
,
set-fourth
Definition
USING:
kernel
;
IN:
sequences
:
set-third
( third seq -- )
2
swap
set-nth
;
inline