Mercurial Hosting > luan
comparison website/src/diff.html.luan @ 468:9b51e2413cab
documentation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 08 May 2015 17:29:28 -0600 |
parents | 47c7de1f2322 |
children | 1285c52ea9d4 |
comparison
equal
deleted
inserted
replaced
467:f86bf532f87c | 468:9b51e2413cab |
---|---|
137 | 137 |
138 <p><tt><pre> | 138 <p><tt><pre> |
139 for i in range(from,to,step) do <i>block</i> end | 139 for i in range(from,to,step) do <i>block</i> end |
140 </pre></tt></p> | 140 </pre></tt></p> |
141 | 141 |
142 <p>The Luan generic <b>for</b> statement is simpler than the Lua version because Luan only uses and expression, not an explist. So a <b>for</b> statement like:</p> | 142 <p>The Luan generic <b>for</b> statement is simpler than the Lua version because Luan only uses an expression, not an explist. So a <b>for</b> statement like:</p> |
143 | 143 |
144 <p><tt><pre> | 144 <p><tt><pre> |
145 for var_1, ···, var_n in exp do block end | 145 for var_1, ···, var_n in exp do block end |
146 </pre></tt></p> | 146 </pre></tt></p> |
147 | 147 |