Update syntax-list-comprehensions.md

This commit is contained in:
James Napora 2022-02-13 16:53:03 -08:00 committed by GitHub
parent 6cefa03519
commit cf0bc1ed93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ When traversing a table to exclude all the odd numbers you'd be creating a large
To solve these problems, I propose a `n for-in-do` expression form that is syntactically similar to a for statement, but lacks terminating `end`. To solve these problems, I propose a `n for-in-do` expression form that is syntactically similar to a for statement, but lacks terminating `end`.
The `n for-in-do` expression must match ``<identifier> for <identifier> in <expr> do``. The `n for-in-do` expression must match ``<identifier> for <identifier> in <expr> do``.
A ``if <expr> then`` expression might be required. A ``if <expr>`` expression might be required.
Example: Example:
```lua ```lua