I reach for folds a lot.
After hearing Don Syme talk about code he would rather avoid, he mentioned folds, and how they “are the goto of functional programming”.
Mine can sometimes get overly complicated…
Is there a tool in Haskell which could automatically give a few suggestions on how to factor away from powerful folds to simpler functions?
I imagine it’d be useful for me while programming in other languages also - but Haskell seems like the natural place to find such a tool - purity, using type definitions to search for replacements…