Handbook
Glossary
collapse-slice ( m n slice -- m' n' seq )
Vocabulary
sequences
Inputs
m
a non-negative integer
n
a non-negative integer
slice
a
slice
Outputs
m'
a non-negative integer
n'
a non-negative integer
seq
a
sequence
Word description
Prepares to take the slice of a slice by adjusting the start and end indices accordingly, and replacing the slice with its underlying sequence.
Definition
USING:
accessors
kernel
math
;
IN:
sequences
:
collapse-slice
( m n slice -- m' n' seq )
[
from>>
]
[
seq>>
]
bi
[
[
+
]
curry
bi@
]
dip
;
inline