根据过滤条件返回一个新的Map
Map<K, V> filter(bool Function(K key, V value) test) { Map<K, V> newMap = {}; for (K k in keys) { if (test(k, this[k] as V)) { newMap[k] = this[k] as V; } } return newMap; }