distinct ()
Creates a list of all distinct items from a source list.
Parameters
$list
- The list from which items distinct items will be selected.
- Type
List
$separator
- The type of separator to be used by the extracted list.
- Type
space | comma | slash | auto
- Default
auto
Return Value
List
- A list with no repeated values.
Example
@use '@sass-fairy/list';
$list: 'a' 1 'b' 'c' 1 1 2 3 'b';
@debug list.distinct($list);
// "a" 1 "b" "c" 2 3