This comment is hidden because it contains spoiler information about the solution
What c in (_, c) stands for?
m(o_ _)m wa so cool
Actually.... your solution is faster than the one everyone loves :D. You are surfing the string only once.
so what does x along do there? I couldn't understand it
One of these days, hopefully. Signing off for today after this. ( That was quite a bit of work. Fun though. :)
@Johan would you mind fixing this yourself? None of the other languages have random tests, so I don't know how to do them
I didn't want to reject it. But for approving now, it sure would be nice to bring it up to date. And that would include the small adjustments necessary for upgrading to 8.x. The lack of random tests was also less of a problem three years ago than it is now.
If you don't update it, I might do it myelf. And I'll have a list of things to fix.
Also, quite unsure why CW came up with version 8.x when I forked it ( I didn't save that ). So "wrong Haskell version selected" is not a problem with your translation, though it is a problem with a new fork.
In short, don't take it personally. It was not meant to be an insult to you.
its cool to come 3 years later and complain about version.
No random tests, wrong Haskell version selected, written against legacy testing framework ( and thus Haskell version ), merge conflict.
State of the art answer.