ko
This commit is contained in:
parent
5d8fa742a9
commit
ddedc74526
@ -20,10 +20,9 @@ def length(list) :
|
||||
for item in list:
|
||||
counter = counter + 1
|
||||
return counter
|
||||
def map(function, list)
|
||||
def map(function, list) :
|
||||
res = []
|
||||
for item in list:
|
||||
res = [function(item)] + res
|
||||
return res
|
||||
def
|
||||
|
||||
Loading…
Reference in New Issue
Block a user