I m in a group at work reading Seven Languages in Seven Weeks by Bruce A. Tate and we are having a presentation on one language each week. I m partially responsible for Erlang in 2 weeks and am looking for a good demo app that would show off the strengths of Erlang. I plan to go through the programming exercises in the book, but am looking for that little, interesting app for the demo. I will need to be able to write it in just a few hours once I become more familiar with the language. Any suggestions are welcome.
For functions where the ordering of the clauses is unimportant, is it base case last: all(Pred, [Head|Tail]) -> case Pred(Head) of true -> all(Pred, Tail); false -> false end; ...