Handbook
Glossary
modified-set-nth ( elt n seq -- )
Vocabulary
sequences
.
modified
Inputs
elt
an
object
n
an
object
seq
an
object
Outputs
None
Definition
IN:
sequences.modified
GENERIC:
modified-set-nth
( elt n seq -- )
Methods
USING:
accessors
kernel
math
sequences
sequences.modified
;
M:
offset
modified-set-nth
[
nip
n>>
-
]
[
seq>>
set-nth
]
2bi
;
USING:
accessors
kernel
math
sequences
sequences.modified
;
M:
scaled
modified-set-nth
[
nip
c>>
/
]
[
seq>>
set-nth
]
2bi
;
USING:
sequences
sequences.modified
;
M:
summed
modified-set-nth
immutable
;