Given an array anArray, returns a new array containing the same elements and where each element appears at most once. Mostly a wrapper to the Set object of the standard library.
anArray
Set
the array with possible duplicates
arrayUniq([1,2,3,1,2,3]); // -> [1,2,3] Copy
arrayUniq([1,2,3,1,2,3]); // -> [1,2,3]
Given an array
anArray
, returns a new array containing the same elements and where each element appears at most once. Mostly a wrapper to theSet
object of the standard library.