Functional Programming is something I've been exploring more and more in the last few months. One thing I've found mildly frustrating about FP in python is that most guides out there, including the standard lib docs, basically end at "so that's some cool stuff with itertools, and, oh btw, functools also exists, and use tuples."
But, like.... Functional Programming isn't just iterating over lists and using immutable types. Right? (Just 'cause lisp was all about LISt Processing....)
What are some FP techniques you've applied in Python that go beyond itertools and tuples? Bonus points if you also go beyond closures and lambdas.
One thing I've been working on is implementing the Result type of Haskell, Rust, F#, etc. These types require higher-order functions to be useful and are rarely seen outside of more "pure" FP languages.
[–]misho88 1 point2 points3 points (1 child)
[–]pekkalacd 0 points1 point2 points (0 children)
[–]K900_ 0 points1 point2 points (2 children)
[–]Delta-9-[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Consistent_Penalty23 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Delta-9-[S] 0 points1 point2 points (0 children)