Mwnci uniq() Function

Syntax

uniq(array)

Description

The uniq() function returns a new array with duplicated entries removed.

Example

a=[1,2,3,4,4,4]
println(uniq(a))
b=["eccles", "eccles", "neddie", "bluebottle", "bluebottle", "moriarty"]
println(uniq(b))


[1, 2, 3, 4]
"eccles", "neddie", "bluebottle", "moriarty"]