Handbook
Glossary
move ( to from seq -- )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Destructive sequence operations
Prev:
reverse! ( seq -- seq )
Next:
exchange ( m n seq -- )
Vocabulary
sequences
Inputs
to
an index in
seq
from
an index in
seq
seq
a mutable sequence
Outputs
None
Word description
Sets the element with index
to
to the element with index
from
.
Side effects
Modifies
seq
Definition
USING:
kernel
;
IN:
sequences
:
move
( to from seq -- )
2over
=
[
3drop
]
[
[
nth
swap
]
[
set-nth
]
bi
]
if
;
inline