ExCellerate.Functions.General.Unique (excellerate v0.4.0)

Copy Markdown View Source

Returns the unique values from a list, preserving the order of first occurrence.

Accepts a single list or any number of individual arguments.

Examples

unique(1, 2, 2, 3, 3)     [1, 2, 3]
unique(items)              items with duplicates removed
unique('a', 'b', 'a')     ['a', 'b']