I’m curious if there are any that were especially uncomfortable to implement in Haskell.
I’m a very very novice “functional programmer” but on occasion I find problems that feel just ridiculous to implement FP style.
I’m a very very novice “functional programmer” but on occasion I find problems that feel just ridiculous to implement FP style.
cut comes to mind as a difficult one. In C, you can just hop around the char buffer[] and drop nulls in place for fields, etc before printing. You could go that way a Data.Array Char, but that's hard to justify as functional.
You basicaly map one line of a stream to another with some filtering and joining. Do I miss the part where it's terribly slow and/or not doable in Haskell or something?