Handbook
Glossary
stable-slices ( seq -- slices )
Splitting trending sequences
Prev:
downward-slices ( seq -- slices )
Next:
upward-slices ( seq -- slices )
Vocabulary
splitting
.
monotonic
Inputs
seq
a
sequence
Outputs
slices
a sequence of stable-slices
Word description
Returns an array of monotonically stable slices of type
stable-slice
. Slices of one element are discarded.
Definition
USING:
kernel
math
sequences
splitting.monotonic.private
;
IN:
splitting.monotonic
:
stable-slices
( seq -- slices )
[
=
]
[
stable-slice
boa
]
(monotonic-split)
[
length
1
>
]
filter
;