Last active
October 10, 2016 13:54
-
-
Save seven-phases-max/2dcab428a50bd913f51088da643a045b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @classes: apple, pear, coconut, orange; | |
| .make-chain(@classes); | |
| .make-chain(@list, @i: 1) | |
| when (@i <= length(@list)) { | |
| @name: extract(@list, @i); | |
| &:not(@{name}) { | |
| .make-chain(@classes, @i + 1); | |
| } | |
| } | |
| .make-chain(@list, @i) | |
| when ((@i - 1) = length(@list)) { | |
| foo: bar; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment