uniq multimethod

Methods

uniq(arr:Arr) Source: stdlib.ngs:1900
Return unique values. Warning: uses Hash so comparison is not using == but a built-in hash keys comparison.

Returns

Arr

Example

[1,2,2,3,4,4].uniq()  # [1,2,3,4]