Chapter 8. Functionally Solving Problems

So we’re ready to do something practical with all that Erlang juice we drank. In this chapter, we’ll apply some of the techniques covered in previous chapters to solve some interesting problems.

The problems in this chapter were taken from Miran Lipovača’s Learn You a Haskell for Great Good! (No Starch Press, 2011; available from http://learnyouahaskell.com). I decided to use the same problems so curious readers can compare solutions in Erlang and Haskell as they wish. If you do so, you might find the final results to be pretty similar for two languages with such different syntaxes. This is because once you understand functional concepts, you’ll find that they’re relatively easy to carry over to other functional ...

Get Learn You Some Erlang for Great Good! now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.