From fec8d79dfa307fd3ef504fe49031a4119f0dc6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 18 Apr 2018 16:37:23 +0200 Subject: [PATCH] Inline --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0d7960f..b4e7a39 100644 --- a/README.md +++ b/README.md @@ -324,6 +324,11 @@ any(el[1] for el in ) if else ``` +```python +>>> [a if a else 2 for a in [0,1,0,3]] +[2, 1, 2, 3] +``` + Closure ------- ```python