mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update syntax-list-comprehensions.md
This commit is contained in:
parent
5f0b8ae1be
commit
a8593fca76
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ Introduce a form of list comprehension using `n for-in-do` syntax.
|
|||
List comprehensions would bring several benefits and prevent code smell.
|
||||
In Lua you are encouraged to not modify tables during traversal.
|
||||
|
||||
When traversing a table to exclude all the odd numbers you'd be creating a large statement to get rid of them, with list comprehensions this could be shortened
|
||||
When traversing a table to exclude all the odd numbers you'd be creating a large statement to get rid of them, with list comprehensions this could be shortened and cleaner
|
||||
|
||||
## Design
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue