Scala for comprehension translation helper