Skip to content
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

add a function to return the number of items in a list #1542

Closed
lukeapage opened this issue Sep 11, 2013 · 3 comments
Closed

add a function to return the number of items in a list #1542

lukeapage opened this issue Sep 11, 2013 · 3 comments

Comments

@lukeapage
Copy link
Member

e.g.

@colors: red white green;
@colors-len: length(@colors); // <-- 3

see #1465 last comment

@radium-v
Copy link
Contributor

(How) Would this work for comma-separated shorthand lists?

@transitions: border 1s linear, background-color 0.3s ease-in-out;

@lukeapage
Copy link
Member Author

I suggest the same was as pick.. probably 2.. not sure what pick does in
that case though.

@seven-phases-max
Copy link
Member

Added in 1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants