Returns array uniqified in-place.
1 auto arr = [1, 2, 2, 2, 3, 3, 4]; 2 3 assert(uniqInPlace(arr) == [1, 2, 3, 4]); 4 // The input array gets modified. 5 assert(arr == [1, 2, 3, 4]); 6 7 // Can be called with non-lvalues 8 assert(uniqInPlace([1, 2, 2, 2, 3, 3, 4]) == [1, 2, 3, 4]);
See Implementation
Returns array uniqified in-place.