3 ms·
Good catch. I think it has to be: reverse (x:xs) = reverse(xs) ++ [x] But then again this is Haskell so there may be some mind boggling property of the langua
by hristov 17y ago
Good catch. I think it has to be:
reverse (x:xs) = reverse(xs) ++ [x]
But then again this is Haskell so there may be some mind boggling property of the language that is only understood by math postdocs and the more enlightened monks in Shaolin monasteries that makes the original line ok.
- steveklabnik 17y agoNope, your revised code is correct.
- jrockway 17y agoBut then again this is Haskell so there may be some mind boggling property of the language that is only understood by math postdocs and the more enlightened monks in Shaolin monasteries that makes the original line ok. Nope, and there never is. Haskell is just programming!