Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /// list-remove
  2. /// Remove an item from a list
  3. /// @param $list - A SASS list
  4. /// @param $index - The list index to remove
  5. /// @returns A SASS list
  6. /// @author Jake Wilson <jake.e.wilson@gmail.com>
  7. @function list-remove($list, $index) {
  8. $newList: ();
  9. @for $i from 1 through length($list) {
  10. @if $i != $index {
  11. $newList: append($newList, nth($list,$i), 'space');
  12. }
  13. }
  14. @return $newList;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement