func (mm *ImmutableStringAppleMap) Map(f func(string, Apple) (string, Apple)) *ImmutableStringAppleMap {
	if mm == nil {
		return nil
	}

	result := NewImmutableStringAppleMap()

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

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

This is a domain-to-range mapping function. For bespoke transformations to other types, copy and modify
this method appropriately.
// Map returns a new ImmutableAppleMap by transforming every element with the function f . // // This is a domain - to - range mapping function . For bespoke transformations to other types copy and modify // this method appropriately .
func (mm *ImmutableStringAppleMap) Map(f func(string, Apple) (string, Apple)) *ImmutableStringAppleMap {
	if mm == nil {
		return nil
	}
	result := NewImmutableStringAppleMap()
	for k1, v1 := range mm.m {
		k2, v2 := f(k1, v1)
		result.m[k2] = v2
	}
	return result
}
func ( mm * ImmutableStringAppleMap ) Map ( f func ( string , Apple ) ( string , Apple ) ) * ImmutableStringAppleMap { if mm == nil { return nil } result := NewImmutableStringAppleMap ( ) for k1 , v1 := range mm . m { k2 , v2 := f ( k1 , v1 ) result . m [ k2 ] = v2 } return result }
Map returns a new ImmutableAppleMap by transforming every element with the function f.
Map returns a new ImmutableAppleMap by transforming every element with the function f .