From 37da546e8d9ec9fd9bf8a1b4407ed22f2a6f7c24 Mon Sep 17 00:00:00 2001 From: James Napora <85808999+TheGreatSageEqualToHeaven@users.noreply.github.com> Date: Sun, 13 Feb 2022 16:41:44 -0800 Subject: [PATCH] Update syntax-list-comprehensions.md --- rfcs/syntax-list-comprehensions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfcs/syntax-list-comprehensions.md b/rfcs/syntax-list-comprehensions.md index 386b3c58..4f5fe9c8 100644 --- a/rfcs/syntax-list-comprehensions.md +++ b/rfcs/syntax-list-comprehensions.md @@ -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