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
9361b856da
commit
37da546e8d
1 changed files with 2 additions and 2 deletions
|
@ -61,10 +61,10 @@ let vector = c![x, for x in 1..10, if x % 2 == 0];
|
|||
S <- 2 * x[x ^ 2 > 3]
|
||||
```
|
||||
|
||||
### Function syntax
|
||||
## Function syntax
|
||||
List comprehensions could be implemented as functions with ``table.map`` or ``table.filter``
|
||||
|
||||
Examples:
|
||||
### Examples:
|
||||
|
||||
#### Perl
|
||||
```perl
|
||||
|
|
Loading…
Add table
Reference in a new issue