From 8c8ab048708bc4dff4196d5b766b919945dc02b7 Mon Sep 17 00:00:00 2001 From: Patrik Tulach Date: Mon, 28 Sep 2026 20:43:40 +0200 Subject: [PATCH] u2 --- u2/list_ops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/u2/list_ops.py b/u2/list_ops.py index f3ea299..54df691 100644 --- a/u2/list_ops.py +++ b/u2/list_ops.py @@ -28,8 +28,7 @@ def length(list): def map(function, list): result = [] for x in list: - if function(x) not in result: - result = result + [x] + result = result + [function(x)] return result def foldl(function, list, initial):