swapAt
fn
void swapAt(R)(auto ref R r, size_t i1, size_t i2)Swaps two elements in-place of a range r, specified by their indices i1 and i2.
Parameters
r | a range with swappable elements |
i1 | first index |
i2 | second index |