Handbook
Glossary
set-nths ( value indices seq -- )
Vocabulary
sequences
.
extras
Inputs
value
an
object
indices
an
object
seq
a
sequence
Outputs
None
Word description
Set the elements at all given indices to
value
. modifies
seq
in place.
Definition
USING:
kernel
sequences
;
IN:
sequences.extras
:
set-nths
( value indices seq -- )
swapd
[
[
swap
]
curry
]
dip
[
set-nth
]
curry
compose
each
;
inline