From 7d91e7ca07bff3aa32126eff2961f5df92017d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 27 Jan 2019 09:02:23 +0100 Subject: [PATCH] Map --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a08795..10d4f02 100644 --- a/README.md +++ b/README.md @@ -500,9 +500,9 @@ for i in range(10): ### Map, Filter, Reduce ```python from functools import reduce - = map(lambda x: x + 1, range(10)) # (1, 2, ..., 10) - = filter(lambda x: x > 5, range(10)) # (6, 7, ..., 9) - = reduce(lambda out, x: out + x, range(10)) # 45 + = map(lambda x: x + 1, range(10)) # (1, 2, ..., 10) + = filter(lambda x: x > 5, range(10)) # (6, 7, ..., 9) + = reduce(lambda out, x: out + x, range(10)) # 45 ``` ### Any, All