【发布时间】:2019-07-05 20:27:52
【问题描述】:
嗨,我是 scala 的初学者, 我要解压
List(List("hello=10","hi=21","there=13","bro=44","family=44","technology=35","hi=20","hello=100","hi=21","there=13","bro=44","family=44","technology=35","hi=21","there=13","bro=44","family=44","family=44"))
变成类似
List("hello=10","hi=21","there=13","bro=44","family=44","technology=35","hi=20","hello=100","hi=21","there=13","bro=44","family=44","technology=35","hi=21","there=13","bro=44","family=44","family=44")
我们怎样才能实现?
谢谢!
【问题讨论】:
-
使用
flatten方法
标签: scala nested-lists flatten