한 개의 튜플의 List 를 컬렉션 작업으로 생성했다. 

immutable.Map으로 변환하기 위해서 mutable.HashMap에. toMap을 호출하면 Map으로 생성된다.


//val results = collection 작업.. val tempMap = mutable.HashMap[String, Any]()
for (r <- results) {
tempMap.put(r._1, r._2)
}

tempMap.toMap


Posted by '김용환'
,