www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4807] New: Examples for std.array insert and replace

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



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: -------
Sep 03 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4807


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |bugzilla kyllingen.net
         AssignedTo|nobody puremagic.com        |bugzilla kyllingen.net


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 03 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4807


Lars T. Kyllingstad <bugzilla kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



05:48:20 PST ---
https://github.com/D-Programming-Language/phobos/commit/00e78b8dd24f37589b0121831c8e19011425bb77

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