https://issues.dlang.org/show_bug.cgi?id=20184

Berni <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Berni <[email protected]> ---
I've had a look at this. I think it's not feasable to add an other parameter
"maxsplit" to split. Internally split uses splitter and splitter works with
BidirectionalRange. That means, for implementing back, splitter has to go
through all elements from the front to find the correct breakpoint. That breaks
lazyness, which in my eyes is not desirable.

Therefore I think it would be better to implement separate functions splitN and
splitterN. splitterN would then be restricted to ForwardRange.

--

Reply via email to