Erlang ports of the functional pearls described in "Pearls of Functional Algorithm Design" by Richard Bird.