Update syntax-list-comprehensions.md

This commit is contained in:
James Napora 2022-02-13 16:41:44 -08:00 committed by GitHub
parent 9361b856da
commit 37da546e8d
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,10 +61,10 @@ let vector = c![x, for x in 1..10, if x % 2 == 0];
S <- 2 * x[x ^ 2 > 3] S <- 2 * x[x ^ 2 > 3]
``` ```
### Function syntax ## Function syntax
List comprehensions could be implemented as functions with ``table.map`` or ``table.filter`` List comprehensions could be implemented as functions with ``table.map`` or ``table.filter``
Examples: ### Examples:
#### Perl #### Perl
```perl ```perl