Scala: the Magnet pattern | Hacker News Reader