Uniq

From WeBWorK
Revision as of 17:52, 18 November 2009 by Aubreyja (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

uniq

Description

Eliminates duplicates in a list

Syntax

uniq(@list)

Params

@list is the list to be sorted.

Returns

Returns list of elements in @list, ignoring duplicates. The order is unspecified.

Examples

join(" ",uniq(23,11,2,5,10,11)); returns " 23 2 10 5 11"
follow us