Handbook
Glossary
change-last-unsafe ( 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. Does not check if the array has a last element.
Definition
USING:
kernel
sequences
sequences.private
;
IN:
sequences.extras
:
change-last-unsafe
( seq quot -- )
[
index-of-last
]
[
change-nth-unsafe
]
bi*
;
inline