Variant of chunkBy that can lazily split a string on case-changes

Per Nordlöw per.nordlow at gmail.com
Sat Oct 27 17:54:59 UTC 2018


On Saturday, 27 October 2018 at 16:54:59 UTC, Per Nordlöw wrote:
> that can group elements using a binary predicate being able to 
> do to the following.

Oops, turns out I already had this at

https://github.com/nordlow/phobos-next/blob/721374f3815db41cc213b108f81ca13ea7b93721/src/slicing.d#L12

This is a less generic solution though with a unary predicate but 
it works in my case.

Still looking for a more general solution.


More information about the Digitalmars-d-learn mailing list