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

bb.t...@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bb.t...@gmx.com
         Resolution|---                         |FIXED

--- Comment #3 from bb.t...@gmx.com ---
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