u2
This commit is contained in:
parent
91769f33d1
commit
8c8ab04870
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user