Scala multiple assignment to existing variable

前端 未结 5 693
独厮守ぢ
独厮守ぢ 2021-01-11 17:02

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

5条回答
提交回复
热议问题