From fea09f5cd36e045aa0fd6564afaf957aff3aa373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 4 Jul 2020 01:28:41 +0200 Subject: [PATCH] Inline --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91f7492..13796c8 100644 --- a/README.md +++ b/README.md @@ -750,7 +750,7 @@ Inline = lambda , : ``` -### Comprehension +### Comprehensions ```python = [i+1 for i in range(10)] # [1, 2, ..., 10] = {i for i in range(10) if i > 5} # {6, 7, 8, 9} diff --git a/index.html b/index.html index a5806cb..ded6f77 100644 --- a/index.html +++ b/index.html @@ -781,7 +781,7 @@ func(*args, **kwargs) -

Comprehension

<list> = [i+1 for i in range(10)]                   # [1, 2, ..., 10]
+

Comprehensions

<list> = [i+1 for i in range(10)]                   # [1, 2, ..., 10]
 <set>  = {i for i in range(10) if i > 5}            # {6, 7, 8, 9}
 <iter> = (i+5 for i in range(10))                   # (5, 6, ..., 14)
 <dict> = {i: i*2 for i in range(10)}                # {0: 0, 1: 2, ..., 9: 18}