www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12987] New: topN should return the top portion of the range

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

          Issue ID: 12987
           Summary: topN should return the top portion of the range
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

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.

--
Jun 24 2014