An example of functional design (in Scala) | Hacker News Reader