collections.Uniq
Returns a slice by removing duplicate elements from the given slice.
Syntax
collections.Uniq SLICE
Returns
[]any
Alias
uniq
{{ slice 1 3 2 1 | uniq }} → [1 3 2]Last updated:
February 8, 2026
:
content: Improve descriptions and signatures for collections functions (573b8610f)
Improve this page