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