Timeline for What is the 'pythonic' equivalent to the 'fold' function from functional programming?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 3, 2023 at 14:05 | comment | added | WestCoastProjects | I agree with the bizarre part but not the "otherwise well designed..." I use the language as the primary for four years and heavy secondary for eight before that. At least there has been some improvements such as type hints, walrus operator, dict comprehensions. | |
| Feb 5, 2021 at 4:22 | comment | added | iono | It's utterly bizarre to me that JavaScript has syntactically cleaner and more useful lambdas and higher-order functions than Python. This is really upsetting; Python is otherwise such a well-designed and attractive language. | |
| Aug 3, 2017 at 20:05 | comment | added | itsbruce | folds are useful to more than functional "purists". They are general purpose abstractions. Recursive problems are pervasive in computing. Folds offer a way to remove the boilerplate and a way to make recursive solutions safe in languages which don't natively support recursion. So a very practical thing. GvR's prejudices in this area are unfortunate. | |
| Aug 19, 2015 at 17:36 | history | answered | clay | CC BY-SA 3.0 |