Some Scala utilities.