Skip to content

Commit

Permalink
imporoved for loop documentation to include list range example
Browse files Browse the repository at this point in the history
  • Loading branch information
coen-hyde committed Sep 7, 2012
1 parent 9520cf2 commit fe9b979
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/iteration.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ Yielding:
foo: 2 sans-serif;
}

And here's how you do a regular for loop

body
for num in (1..5)
foo num

Yields:

body {
foo: 1;
foo: 2;
foo: 3;
foo: 4;
foo: 5;
}
### Mixins

We can use iteration within mixins to produce powerful functionality. For example, we can apply expression pairs as properties using interpolation and iteration.
Expand Down

0 comments on commit fe9b979

Please sign in to comment.