u2
This commit is contained in:
parent
91769f33d1
commit
8c8ab04870
@ -28,8 +28,7 @@ def length(list):
|
|||||||
def map(function, list):
|
def map(function, list):
|
||||||
result = []
|
result = []
|
||||||
for x in list:
|
for x in list:
|
||||||
if function(x) not in result:
|
result = result + [function(x)]
|
||||||
result = result + [x]
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def foldl(function, list, initial):
|
def foldl(function, list, initial):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user