Handbook
Glossary
span-slices ( slice1 slice2 -- slice )
Vocabulary
sequences
.
extras
Inputs
slice1
a
slice
slice2
a
slice
Outputs
slice
a
slice
Word description
Create a virtual sequence spanning the length covered by
slice1
and
slice2
. Slices must refer to the same sequence.
Definition
USING:
accessors
kernel
math.order
sequences
;
IN:
sequences.extras
:
span-slices
( slice1 slice2 -- slice )
ensure-same-underlying
[
[
from>>
]
bi@
min
]
[
[
to>>
]
bi@
max
]
[
drop
seq>>
]
2tri
<slice>
;