Uniq

From WeBWorK_wiki
Jump to navigation Jump to 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"