val l1 = List(1,2,3,4) val l2 = List(5,6,7,8)我希望得到的是:List((1,5),(2,6),(3,7),(4,8))要怎么写scala?越简练越好谢谢大佬
用zip函数就可以了
https://www.jianshu.com/p/ade...