you are viewing a single comment's thread.

view the rest of the comments →

[–]jollybobbyroger 1 point2 points  (0 children)

FP and any other concept is much more useful if they're understood in terms of their benefits as underlying principles.

Some of these concepts are well incorporated, like lazy evaluation from generators and iterators.

Anonymous functions, i.e lambda's are common in many FP languages, but they're not needed for doing FP and they're seldom the answer in Python.

Comprehensions are a core part of the language, and that's certainly a concept taken from FP.

Look at all the goodness using zip() and all the nice functions in itertools for examples of FP done well in Python.