• ###### curiousjuniorcommented on "Last digit of a huge number" haskell solution

wow, nicely done :)

• ###### Alex616commented on "Remove String Spaces" haskell solution

Thanks, I learnt that there's a isSpace function now. And some more is-functions on hackage. Although I used (/= ' ') I still appreciate these builtin functions which you actually know what's going on by their name.

• ###### Hughshinecommented on "Highest Scoring Word" haskell solution

One should implement its own `argmax`.

Edited: Oh! One could do `reverse` before `words`.

• ###### Hughshinecommented on "Highest Scoring Word" haskell solution

This code is in fact not correct, because `maximumBy` will not return the first element with highest score but the final one.

For example, if we use the test "ab ba" (which should return "ab"), the code cannot pass.

• ###### martin3141commented on "Shortest Word" haskell solution

Yes, 'map length' is a function that takes only one argument: a list (it is only partially evaluated). Hence 'map length . words' takes only a string as an argument and so on.

• ###### AMathematicalWaycommented on "Sum of odd numbers" haskell solution

Great use of this property!

• ###### brzezinskipcommented on "Sum of odd numbers" haskell solution

That's impressive, I often forget that there probably is some hidden pattern that I can leverage. Good one :).

• ###### Xaositectcommented on "Invert values" haskell solution

This comment is hidden because it contains spoiler information about the solution

• ###### mike_klgcommented on "Invert values" haskell solution

This comment is hidden because it contains spoiler information about the solution

Elegant.

• ###### metaxiscommented on "Decode the Morse code " haskell solution

it returns "error", if key is wrong.

• ###### Sunderscommented on "Decode the Morse code " haskell solution

Hoogle seems not to know about Data.List.Split, and I failed to find something like splitOn. Thanks for the hint!

• ###### gafiatulincommented on "Simple Fun #159: Middle Permutation" kata

Two of sample tests are incorrect in Haskell translation:

``````it "abcdxg" \$ do
middlePermutation "abcdxg" `shouldBe` "cgxdba"
it "abcdxgz" \$ do
middlePermutation "abcdxgz" `shouldBe` "dczgxba"
``````

Should be `cxgdba` and `dczxgba`

• ###### gafiatulincommented on "Bouncing Balls" haskell solution

This comment is hidden because it contains spoiler information about the solution

• ###### reflashcommented on "Bouncing Balls" haskell solution

This comment is hidden because it contains spoiler information about the solution