Vocabularysplitting.
monotonicInputsOutputsslices | a sequence of downward, stable, and upward slices |
Word descriptionReturns a sorted sequence of downward, stable, or upward slices. The endpoints of some slices may overlap with each other.
ExamplesUSING: splitting.monotonic math prettyprint ;
{ 1 2 3 3 2 1 } trends .
{
T{ upward-slice { to 3 } { seq { 1 2 3 3 2 1 } } }
T{ stable-slice
{ from 2 }
{ to 4 }
{ seq { 1 2 3 3 2 1 } }
}
T{ downward-slice
{ from 3 }
{ to 6 }
{ seq { 1 2 3 3 2 1 } }
}
}
Definition