[Issue 2928] New: Swap order of paramaters for std.range's "take"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 3 12:49:23 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2928

           Summary: Swap order of paramaters for std.range's "take"
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: cbkbbejeap at mailinator.com


According to the docs, in std.range, "take" takes the range as its second
parameter and 'n' as the first parameter. This ordering should be swapped, 1.
to be consistent with stride, advance, retreatN, and cycle, and 2. to allow the
syntax "a.take(n)" like with advance.


-- 



More information about the Digitalmars-d-bugs mailing list