diff --git a/u2/list_ops.py b/u2/list_ops.py index 15bae72..c41bf94 100644 --- a/u2/list_ops.py +++ b/u2/list_ops.py @@ -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 \ No newline at end of file