r/functionalprogramming • • Jun 29 '21

Python good examples of functional-like python code that one can study?

Would love to be able to study some real world python code that is written in functional style. Have not come across any. They must exist out there given the interest in functional and interest in python.

Thank you for sharing.

16 Upvotes

25 comments sorted by

View all comments

Show parent comment

2

u/redd-sm Jun 30 '21

Learning a new language that supports these mechanisms as a first-class citizen has had a great effect in how I structure my programs in JS, where I don't have them.

This is what I would like to achieve.

Although my learning is not for professional work reasons, but desire to learn is as strong.

The more I learn this topic, it feels like learning Haskell is ideal and then can apply that learning in any language and may be even some in Python.

1

u/kluvin Jul 01 '21

I don't do my learning here for professional work reasons either, at least not as a primary goal. Haskell might even be a bit harder to learn than OCaml. Community is somewhat bigger, but the language takes even more time to become productive in.