From F# to Scala