Martin McBride
Nov 13, 2021

--

Python has quite strong FP support, as well as OOP and imperative. You can blend all three quite naturally. Primarily, Python functions are first class objects that can be operated on by other functions. It also supports closures, and has good support for lazy iteration through the iterator protocol and generators. There are libraries that add support for partial application, currying, function composition, and monads.

There are a few articles at https://pythoninformer.com/programming-techniques/functional-programming/

--

--

Martin McBride
Martin McBride

No responses yet