Permalink
Browse files

imporoved for loop documentation to include list range example

  • Loading branch information...
1 parent 9520cf2 commit fe9b9792c7df85587be4d937d74ce51b73c92f80 @coen-hyde committed Sep 7, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 docs/iteration.md
View
@@ -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.

0 comments on commit fe9b979

Please sign in to comment.