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