3 ms·
>There's no general purpose idiom you can use to replace all loops, only tons of special purpose HOFs you must memorize. Ah, but there is! Recursion schemes.
by vmchale 9y ago
>There's no general purpose idiom you can use to replace all loops, only tons of special purpose HOFs you must memorize.
Ah, but there is! Recursion schemes.
>Usually an imperative algorithm will be much clearer in an imperative language than in Haskell, and easier to get right on the first try.
Not sure what an "imperative algorithm" is, but I agree there are tasks better suited to imperative languages.