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

           Summary: Examples for std.array insert and replace
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2010-09-03 
17:37:02 PDT ---
These two are missing examples, might add these:

http://www.digitalmars.com/d/2.0/phobos/std_array.html#insert

int[] a = [ 1, 2, 3, 4 ];
a.insert(2, [ 1, 2 ]);    
assert(a == [ 1, 2, 1, 2, 3, 4 ]);


http://www.digitalmars.com/d/2.0/phobos/std_array.html#replace

int[] a = [ 1, 2, 3, 4 ];
a.replace(1, 3, [ 2, 2 ]);
assert(a == [ 1, 2, 2, 4 ]);

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

Reply via email to