at-import / SassyLists

MIT License
276 stars 27 forks source link

Upgraded `to-map()` with warnings, support for zero-based indexing & more #35

Closed lolmaus closed 10 years ago

lolmaus commented 10 years ago

Hey Hugo. ^_^

I stumbled upon this and noticed that it lacks the @each loop.

Then i noticed that the example requires an index variable.

Then i remembered having solved this case before.

Then i decided to have a look whether your SassyLists has this function and didn't find one.

So i created one for you.

But before submitting a pull request i decided to have a look into your roadmap and found that the function is already implemented in the next branch.

But my implementation seemed better to me, so i decided to send the pull request anyway.

Don't hesitate to decline it if you feel so.

PS I've tested it on SassMeister and it seems to work, but i didn't use this very code in any project. Looks like i've got a suggestion for your roadmap.


Upgraded to-map():

@each $i, $value in enumerate($list)
KittyGiraudel commented 10 years ago

Manually merged into 2.0-beta. Thanks Andrey!

lolmaus commented 10 years ago

My pleasure.