Bug 12987 – topN should return the top portion of the range

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-24T22:08:00Z
Last change time
2015-12-08T14:04:10Z
Assigned to
xinok
Creator
andrei

Comments

Comment #0 by andrei — 2014-06-24T22:08:22Z
This oversight makes topN really awkward to use with pipes and filters. See e.g. http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/D 25:23 where I use sort and take instead of topN.
Comment #1 by lt.infiltrator — 2015-12-08T08:23:06Z
It can't be as simple as this, but if it is: https://github.com/D-Programming-Language/phobos/pull/3864
Comment #2 by github-bugzilla — 2015-12-08T14:04:09Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/3f9a33f91d6502947d880448ab8049236a1efa4e Merge pull request #3864 from Infiltrator/patch-1 Fix issue 12987 - topN should return the top portion of the range