slavapestov/factor — Issue #462: Monotonic slices seem broken?
Author: mrjbq7
Created: 2011-12-26 20:32:03+00:00
State: open

I tried to use `monotonic-slice` and noticed a difference with `monotonic-split`:

```factor
IN: scratchpad { 1 1 1 2 2 2 2 3 3 }
[ [ odd? ] bi@ = ] monotonic-split
[ >array ] map .
{ { 1 1 1 } { 2 2 2 2 } { 3 3 } }
```

vs.

```factor
IN: scratchpad { 1 1 1 2 2 2 2 3 3 }
[ [ odd? ] bi@ = ] slice monotonic-slice
[ >array ] map .
{ { 1 1 1 } { 2 2 2 2 } }
```