Описание слайда:
Функции высших порядков. Reduce()
list = [2, 3, 4, 5, 6]
reduce(lambda res, x: res*x, list, 1)
#720 = ((((1*2)*3)*4)*5)*6
reduce(lambda res, x: res*x, [], 1)
#1
reduce(lambda res, x: [x]+res, [1, 2, 3, 4], [])
#[4, 3, 2, 1]
reversed([1,2,3,4,5])
#[5,4,3,2,1]