sort_unique
function:
- Can also be called as
order_unique
Sort a list and remove duplicates. If the first argument is a list, return list sorted without duplicates.
Examples:
- running:
(sort_unique [1, -2, 3.01, 3.05, -544, 100])
will give:[-544, -2, 1, 3.01, 3.05, 100]
- running:
(sort_unique [1, 2, 3, 2, 3, 3])
will give:[1, 2, 3]
- running:
(sort_unique [null, true, false, {}, [1, 2, 3], "abc", "cde", {"key": 12}])
will give:[null, false, true, "abc", "cde", {}, {"key": 12}, [1, 2, 3]]
- running:
(sort_unique 344)
will return nothing