Handbook
Glossary
change-last ( seq quot -- )
Vocabulary
sequences
.
extras
Inputs
seq
a
sequence
quot
a
quotation
Outputs
None
Word description
Applies
quot
to the last element of a sequence, modifying it in place.
Definition
USING:
kernel
sequences
;
IN:
sequences.extras
:
change-last
( seq quot -- )
[
index-of-last
]
[
change-nth
]
bi*
;
inline