[Swift-commit] r6371 - trunk/docs/userguide
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Mon Mar 11 16:45:32 CDT 2013
Author: ketan
Date: 2013-03-11 16:45:32 -0500 (Mon, 11 Mar 2013)
New Revision: 6371
Modified:
trunk/docs/userguide/mappers
Log:
add example of iterate
Modified: trunk/docs/userguide/mappers
===================================================================
--- trunk/docs/userguide/mappers 2013-03-11 19:58:59 UTC (rev 6370)
+++ trunk/docs/userguide/mappers 2013-03-11 21:45:32 UTC (rev 6371)
@@ -263,6 +263,14 @@
iteration. That variable is in scope in the statements block and when
evaluating the termination expression.
+For example, the following block will iterate over the +months+ variable 12 times:
+
+----
+iterate month {
+ tracef("%i\n", month);
+ } until (month==12);
+----
+
Operators
~~~~~~~~~
The following infix operators are available for use in Swift script
More information about the Swift-commit
mailing list