4 ms·
I've never understood the strong demand for multi-statement lambdas. At best, it's just syntactic sugar. What's wrong with: def my_map_function(x): # do
by Sohcahtoa82 2y ago
I've never understood the strong demand for multi-statement lambdas. At best, it's just syntactic sugar. What's wrong with:
def my_map_function(x):
# do stuff
new_list = map(my_map_function, my_list)
?