Splitting a sequence using a binary predicate on adjacent elements

jmh530 john.michael.hall at gmail.com
Tue Oct 17 14:00:21 UTC 2017


On Tuesday, 17 October 2017 at 13:25:01 UTC, Nordlöw wrote:
> On Tuesday, 17 October 2017 at 13:09:18 UTC, Nordlöw wrote:
>> Is there one?
>
> If not, what should we call it?...yet another overload of 
> `splitter()` with a binary predicate and only a single 
> parameter `Range input`?

Would probably need to use findAdjacent to get it to work
https://dlang.org/phobos/std_algorithm_searching.html#findAdjacent

So splitterAdjacent?


More information about the Digitalmars-d-learn mailing list