/**
* 从map删除指定的元素并返回一个新的map
*
* @param
* @author 网: jb51.cc
**/
val origMap = Map("key1" -> "something","key2" -> "else");
val myMap = origMap - "key1";
//myMap looks like Map("key2" -> "else")
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528676.html