Handbook
Glossary
factorcode.org
windowed-sequence
Vocabulary
sequences.windowed
Definition
USING:
math
sequences
;
IN:
sequences.windowed
TUPLE:
windowed-sequence
{
sequence
sequence
read-only
initial:
f
}
{
n
integer
initial:
0
}
;
Methods
USING:
accessors
sequences
sequences.windowed
;
M:
windowed-sequence
length
sequence>>
length
;
inline
USING:
accessors
kernel
math
math.order
sequences
sequences.private
sequences.windowed
;
M:
windowed-sequence
nth-unsafe
[
1
+
]
dip
[
n>>
dupd
[-]
swap
]
[
sequence>>
]
bi
<slice>
;
inline