func (mm SimpleStringAppleMap) Map(f func(string, Apple) (string, Apple)) SimpleStringAppleMap {
	result := NewSimpleStringAppleMap()

	for k1, v1 := range mm {
		k2, v2 := f(k1, v1)
		result[k2] = v2
	}

	return result
}
// Map returns a new SimpleAppleMap by transforming every element with the function f.
// The original map is not modified.
//
// This is a domain-to-range mapping function. For bespoke transformations to other types, copy and modify
// this method appropriately.
Map returns a new SimpleAppleMap by transforming every element with the function f.
The original map is not modified.

This is a domain-to-range mapping function. For bespoke transformations to other types, copy and modify
this method appropriately.
// Map returns a new SimpleAppleMap by transforming every element with the function f . // The original map is not modified . // // This is a domain - to - range mapping function . For bespoke transformations to other types copy and modify // this method appropriately .
func (mm SimpleStringAppleMap) Map(f func(string, Apple) (string, Apple)) SimpleStringAppleMap {
	result := NewSimpleStringAppleMap()
	for k1, v1 := range mm {
		k2, v2 := f(k1, v1)
		result[k2] = v2
	}
	return result
}
func ( mm SimpleStringAppleMap ) Map ( f func ( string , Apple ) ( string , Apple ) ) SimpleStringAppleMap { result := NewSimpleStringAppleMap ( ) for k1 , v1 := range mm { k2 , v2 := f ( k1 , v1 ) result [ k2 ] = v2 } return result }
Map returns a new SimpleAppleMap by transforming every element with the function f.
The original map is not modified.
Map returns a new SimpleAppleMap by transforming every element with the function f . The original map is not modified .