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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #3 from [email protected] ---
swap() now works on Array:

_______________
void main() {
    import std.algorithm;
    import std.container: Array;
    auto arr = Array!int([1, 2]);
    swap(arr[0], arr[1]);
    assert(arr[0] == 2 && arr[1] == 1);
}_______________

--

Reply via email to