3 ms·
...in Python. Please don't. Use proper functional language to learn this paradigm, otherwise you won't see the difference between imperative and functional pro
by dozzie 10y ago
...in Python.
Please don't. Use proper functional language to learn this paradigm,
otherwise you won't see the difference between imperative and functional
programming. Especially that the presented "functional version" of the code is
inconvenient to use compared to the one with mutable state. Python was not
written with that in mind, so it's not a good fit.