Comment #0 by bearophile_hugs — 2013-03-10T09:30:53Z
After this issue is implemented:
http://d.puremagic.com/issues/show_bug.cgi?id=9616
Then I'd like group() to recognize a lazy SortedRange, and return another sorted range:
group(SortedRange) ==> SortedRange
group() is very often run on a sorted range. This enhancement will allow the binary search an other algorithms to work on the output of group. This is quite handy and avoids an useless call to assumeSorted.
Comment #1 by bearophile_hugs — 2014-06-11T22:32:57Z
Likewise, I'd also like filter to do the same:
filter(SortedRange) ==> SortedRange
Comment #2 by razvan.nitu1305 — 2017-09-01T08:57:00Z
The user should be in charge of this, since otherwise we will have to propagate sortedness for all phobos functions. Closing as wontfix, see PR : https://github.com/dlang/phobos/pull/5712 for more information.
Comment #3 by petar.p.kirov — 2017-09-01T09:56:26Z