New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow negative indices in `nth` list function #808

Merged
merged 2 commits into from Jun 17, 2013

Conversation

Projects
None yet
2 participants
@ggilder
Contributor

ggilder commented Jun 17, 2013

Allow negative indices between -1 and (-1 * list length) in the nth
function.

Allow negative indices in `nth` list function
Allow negative indices between -1 and (-1 * list length) in the `nth`
function.
@nex3

This comment has been minimized.

nex3 commented on lib/sass/script/functions.rb in 2f83fec Jun 17, 2013

This needs to be described in the main body of the documentation. It's not going to be obvious to most people that the -1st item in the list is the last one.

@ggilder

This comment has been minimized.

Contributor

ggilder commented Jun 17, 2013

@nex3 Just added some explanation. Let me know if you think it's clear enough...

nex3 added a commit that referenced this pull request Jun 17, 2013

Merge pull request #808 from ggilder/nth-negative-indices
Allow negative indices in `nth` list function

@nex3 nex3 merged commit dca1498 into sass:master Jun 17, 2013

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment