Handbook
Glossary
modified-nth ( n seq -- elt )
Vocabulary
sequences
.
modified
Inputs
n
an
object
seq
an
object
Outputs
elt
an
object
Definition
IN:
sequences.modified
GENERIC:
modified-nth
( n seq -- elt )
Methods
USING:
accessors
kernel
math
sequences
sequences.modified
;
M:
offset
modified-nth
[
seq>>
nth
]
[
n>>
+
]
bi
;
USING:
accessors
kernel
math
sequences
sequences.modified
;
M:
scaled
modified-nth
[
seq>>
nth
]
[
c>>
*
]
bi
;
USING:
accessors
kernel
math
sequences
sequences.modified
;
M:
summed
modified-nth
seqs>>
[
?nth
[
+
]
when*
]
with
0
swap
reduce
;