I can do something like
def f(): Tuple2[String, Long] = ... val (a, b) = f()
What about if the variables are already existing? I\'m runnin
If you run always "the same sets of data" over filters etc, it is a symptom that they belong somehow together, so you should consider to group them using either a tuple or a dedicated class (usually a case class in such cases).