This commit is contained in:
Patrik Tulach 2026-09-28 20:43:40 +02:00
parent 91769f33d1
commit 8c8ab04870

View File

@ -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):