Update u2/list_ops.py

This commit is contained in:
Roman Dmytruk 2026-09-29 14:51:15 +00:00
parent d731d5db90
commit 8f70c5255c

View File

@ -1,4 +1,3 @@
def append(list1, list2):
result = []
for item in list1:
@ -25,3 +24,13 @@ def length(l):
for item in l:
result +=1
return result
def map(function, list):
def foldl(function, list, initial):
def foldr(function, list, initial):
def reverse(list):