func (mm SimpleStringAppleMap) Filter(p func(string, Apple) bool) SimpleStringAppleMap {
	result := NewSimpleStringAppleMap()
	for k, v := range mm {
		if p(k, v) {
			result[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 SimpleStringAppleMap) Filter(p func(string, Apple) bool) SimpleStringAppleMap {
	result := NewSimpleStringAppleMap()
	for k, v := range mm {
		if p(k, v) {
			result[k] = v
		}
	}
	return result
}
func ( mm SimpleStringAppleMap ) Filter ( p func ( string , Apple ) bool ) SimpleStringAppleMap { result := NewSimpleStringAppleMap ( ) for k , v := range mm { if p ( k , v ) { result [ 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 .