标签:
1:map和模式匹配的结合
settings.foreach{case (k,v) => set(k,v)}
2:map转成array
settings.entrySet().asScala.map( x => (x.getKey, x.getValue)).toArray
scala的map的操作
原文地址:http://www.cnblogs.com/gaoxing/p/4909386.html