Handbook
Glossary
in-bound ( n sequence -- n' )
Windowed sequences
Prev:
<windowed-sequence> ( sequence n -- windowed-sequence )
Next:
in-bounds ( a b sequence -- a' b' sequence )
Vocabulary
sequences
.
windowed
Inputs
n
an
integer
sequence
a
sequence
Outputs
n'
an
integer
Word description
Clamps an integer from 0 to the sequence length.
Definition
USING:
kernel
math.order
sequences
;
IN:
sequences.windowed
:
in-bound
( n sequence -- n' )
[
drop
0
]
[
length
]
bi
clamp
;
inline