General Iterables
Loop Over Two Iteratables
for (f,b) in zip(foo, bar):
print "f: ", f ,"; b: ", bFunctional
outputs = map(function_to_apply, inputs)
list(outputs)number_list = range(-5, 5)
less_than_zero = list(filter(lambda x: x < 0, number_list))from functools import reduce
product = reduce((lambda x, y: x * y), [1, 2, 3, 4])Last updated