www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19207] New: std.algorithm.subsitute wrong results for single

https://issues.dlang.org/show_bug.cgi?id=19207

          Issue ID: 19207
           Summary: std.algorithm.subsitute wrong results for single
                    subrange substitution
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

[1,2,3,4].substitute([2],[7]) returns [1,7] instead of [1,7,3,4]

Caused by a trivial mistake, PR incoming.

--
Aug 30 2018