Hacker News new | ask | show | jobs
by Sharlin 3431 days ago
Incidentally, Scala discourages using pattern matching in cases like this (pun not intended), preferring the use of combinators (map/flatMap/etc).