Difference between revisions of "Uniq"

From WeBWorK_wiki
Jump to navigation Jump to search
(from ur manpages)
 
(No difference)

Latest revision as of 18:52, 18 November 2009

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"