Re:Toolz: A functional standard library for Python
by ElevenPhonons on Friday January 22, 2021 @12:11AM
(#25868540)
Perhaps a custom compose function can help with these use cases? This series has a few examples of composing computation in Python that might be useful.
https://github.com/mpkocher/Functional-Programming-Technique...
And there's a general list of resources here.
Re:Toolz: A functional standard library for Python
by rcv on Thursday January 21, 2021 @09:29PM
(#25867548)
Not sure how easy convenient this is in practice, but the docs mention using the "do" function [1]
[1] https://toolz.readthedocs.io/en/latest/api.html#toolz.functo...
e.g.
how to do easily you log/instrument f(g(h(x)))?