3 ms·
"Don’t hide higher-order functions Higher-order functions are great, so try not to hide them away. If you’re working with collections, you should prefer to wri
by kvnhn 5y ago
"Don’t hide higher-order functions
Higher-order functions are great, so try not to hide them away. If you’re working with collections, you should prefer to write functions that operate on a single entity rather than the collection itself."
Excellent advice -- and not just for Elixir. I find myself applying this technique often in Python, for example. While the example is fairly simple and contrived, the consequences they note ring true.
- devoutsalsa 5y agoYeah, I misread the bit about about higher order functions (or they edited the article).