Kode fra boken Functional Programming in Scala (Manning)