Skip to content

Instantly share code, notes, and snippets.

@KittyGiraudel
Created September 8, 2015 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KittyGiraudel/eecbd02ee44ea0726ccb to your computer and use it in GitHub Desktop.
Save KittyGiraudel/eecbd02ee44ea0726ccb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@function uniq($list) {
$uniq-list: ();
@each $item in $list {
@if not index($uniq-list, $item) {
$uniq-list: append($uniq-list, $item, list-separator($list));
}
}
@return $uniq-list;
}
.foo {
uniq: uniq(1 5 5 6 3 2 2 1);
}
.foo {
uniq: 1 5 6 3 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment