[Solved] Can someone explain what map and lambda does?


lambda -> created new function with parameters following it till : then follows function body

map -> takes function and apply it to each element of collection and put returned value from such function into new collection

Here you can read more on such a style of programming:
https://docs.python.org/2.7/howto/functional.html

0

solved Can someone explain what map and lambda does?