www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10930] New: std.array.replace cannot simple replace an element in array

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

           Summary: std.array.replace cannot simple replace an element in
                    array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: temtaime gmail.com



That should be accepted:

    auto arr = [ 1, 1, 1 ];
    arr = replace(arr, 1, 2);

    writeln(arr);

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