我在斯卡拉有一个元组
val captainStuff = ("One", "Two", "Three", "Four", "Five")
我如何遍历for循环?遍历列表和地图很容易。但是如何遍历元组。
谢谢!!
loops scala
loops ×1
scala ×1