https://issues.dlang.org/show_bug.cgi?id=10930
--- Comment #4 from RazvanN <[email protected]> --- This should do the trick: auto arr = [ 1, 1, 1 ]; replaceInPlace(arr, 1, 2, [2]); writeln(arr); I suggest we close this. Sorry for the above comment. It was a copy-paste mistake. --
