at-import / SassyLists

MIT License
276 stars 27 forks source link

Refactor `tail` function #28

Closed leonderijke closed 10 years ago

leonderijke commented 10 years ago

Tail now returns the rest of the list instead of the last item. It is a common idiom to split a list into a head (first item) and tail (rest of the list), especially when using recursion. This change supports that use case.

Fixes #25

KittyGiraudel commented 10 years ago

Excellent, thank you very much! I'll write the docs and release a new gem version when I get a chance. :)

leonderijke commented 10 years ago

Awesome, thanks!