concept letter in category functional programming

appears as: letters, letter, letters
Grokking Functional Programming

This is an excerpt from Manning's book Grokking Functional Programming.

It worked! haskell is at the top of the ranking, because its score is 6. There is one problem though. We mutate the existing words list inside the function! Note that sort method returns void making it obvious that it mutates the argument that we passed. This solution violates the rules of a pure function and invites all the problems we’ve discussed in previous chapters. We can do better, and do it in Java!