From 6f57f2bebfec3f997077fba6db39edf9df9daeff Mon Sep 17 00:00:00 2001 From: Arina Dohadailo Date: Wed, 30 Sep 2026 14:36:52 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20u2/list=5Fops.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- u2/list_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u2/list_ops.py b/u2/list_ops.py index aa43a46..2d75f7f 100644 --- a/u2/list_ops.py +++ b/u2/list_ops.py @@ -40,7 +40,7 @@ def map(function,list): def reverse(list): result = [] for item in list: - result = item + result + result = [item] + result return result @@ -52,7 +52,7 @@ def foldl(function,list,initial): def foldr(function,list,initial): - return foldl(function,reverse.(list),initial) + return foldl(function,reverse(list),initial)