2014-03-03 32 views

回答

9
val arr = Array(Map("k1" -> "v1"), Map("k2" -> "v2"), Map("k3" -> "v3"), Map("k4" -> "v4")) 
arr.flatten.toMap 
0
val m = arr.flatMap(identity).toMap 
相關問題