4 ms·
I've always found logging and debugging to be just so darn tedious in functional realms. e.g. how to do easily you log/instrument f(g(h(x)))?
by jgalt212 6y ago
I've always found logging and debugging to be just so darn tedious in functional realms.
e.g.
how to do easily you log/instrument f(g(h(x)))?
- rcv 6y agoNot 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.functoolz.do https://toolz.readthedocs.io/en/latest/api.html#toolz.functo...
- ElevenPhonons 6y agoPerhaps 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-Techniques-In-Python https://github.com/mpkocher/Functional-Programming-Technique... And there's a general list of resources here. https://github.com/sfermigier/awesome-functional-python https://github.com/sfermigier/awesome-functional-python