Handbook
Glossary
seq-shorten ( seq n -- seq )
Vocabulary
sequences
.
seq
Inputs
seq
an
object
n
an
object
Outputs
seq
an
object
Definition
IN:
sequences.seq
GENERIC#:
seq-shorten
1
( seq n -- seq )
Methods
USING:
kernel
math
sequences
sequences.seq
;
M:
sequence
seq-shorten
2dup
lengthd
>
[
seq-set-length
]
[
drop
]
if
;
inline