removeDuplicate

The function removes duplicate elements from an array.

ref
T[]
removeDuplicate
(
T
)
(
ref T[] arr
)

Examples

int[] values = [1, 3, 1, 7, 2, 19, 5, 2, 2];
removeDuplicate(values);
assert(values == [1, 3, 7, 2, 19, 5]);

Meta