r/Python • • May 30 '25

Resource Functional programming concepts that actually work in Python

Been incorporating more functional programming ideas into my Python/R workflow lately - immutability, composition, higher-order functions. Makes debugging way easier when data doesn't change unexpectedly.

Wrote about some practical FP concepts that work well even in non-functional languages: https://borkar.substack.com/p/why-care-about-functional-programming?r=2qg9ny&utm_medium=reddit

Anyone else finding FP useful for data work?

137 Upvotes

41 comments sorted by

View all comments

Show parent comment

4

u/jcmkk3 May 31 '25

You're describing functional programming in the ML family of languages. Most of the other families of functional languages are dynamically typed like Python. Three of them that come to mind are the lisp/scheme family, Erlang (BEAM) family, and the Iversonian languages (APL descendants).