func (mm *FastIntIntMap) Filter(p func(int, int) bool) *FastIntIntMap {
	if mm == nil {
		return nil
	}

	result := NewFastIntIntMap()

	for k, v := range mm.m {
		if p(k, v) {
			result.m[k] = v
		}
	}

	return result
}
// Filter applies the predicate p to every element in the map and returns a copied map containing
// only the elements for which the predicate returned true.
// The original map is not modified.
Filter applies the predicate p to every element in the map and returns a copied map containing
only the elements for which the predicate returned true.
The original map is not modified.
// Filter applies the predicate p to every element in the map and returns a copied map containing // only the elements for which the predicate returned true . // The original map is not modified .
func (mm *FastIntIntMap) Filter(p func(int, int) bool) *FastIntIntMap {
	if mm == nil {
		return nil
	}
	result := NewFastIntIntMap()
	for k, v := range mm.m {
		if p(k, v) {
			result.m[k] = v
		}
	}
	return result
}
func ( mm * FastIntIntMap ) Filter ( p func ( int , int ) bool ) * FastIntIntMap { if mm == nil { return nil } result := NewFastIntIntMap ( ) for k , v := range mm . m { if p ( k , v ) { result . m [ k ] = v } } return result }
Filter applies the predicate p to every element in the map and returns a copied map containing
only the elements for which the predicate returned true.
Filter applies the predicate p to every element in the map and returns a copied map containing only the elements for which the predicate returned true .