Skip to content

Bars Specification 0.1.0 — Transform: uniq

Category: list · Since: 0.1.0

Removes duplicate elements.

Removes duplicates from the input list, comparing elements by their string form; the first occurrence of each distinct value wins.

Input coercion: list

Arguments

None.

Arity: 0–0

Worked examples

{{ xs | uniq }}

["a","b","c"]
{{ xs | uniq }}

[1,2,3]

Full fixture: transforms/transform-uniq.json