[Issue 3002] New: toArray or eager for ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 17 11:10:13 PDT 2009


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

           Summary: toArray or eager for ranges
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dsimcha at yahoo.com


Andrei had proposed a while back on the NG when ranges were first being
discussed to include a toArray() or eager() function that takes an arbitrary
finite range and turns it into an array.  This apparently was overlooked in the
final design, but would be simple to implement and very useful.

One request:  If the range defines a length, it should be pre-allocated rather
than using appending.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list