func (mm *FastIntIntMap) FlatMap(f func(int, int) []FastIntIntTuple) *FastIntIntMap {
	if mm == nil {
		return nil
	}

	result := NewFastIntIntMap()

	for k1, v1 := range mm.m {
		ts := f(k1, v1)
		for _, t := range ts {
			result.m[t.Key] = t.Val
		}
	}

	return result
}
// FlatMap returns a new FastIntMap by transforming every element with the function f that
// returns zero or more items in a slice. The resulting map may have a different size to the original map.
// 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.
FlatMap returns a new FastIntMap by transforming every element with the function f that
returns zero or more items in a slice. The resulting map may have a different size to the original map.
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.
// FlatMap returns a new FastIntMap by transforming every element with the function f that // returns zero or more items in a slice . The resulting map may have a different size to the original map . // 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 *FastIntIntMap) FlatMap(f func(int, int) []FastIntIntTuple) *FastIntIntMap {
	if mm == nil {
		return nil
	}
	result := NewFastIntIntMap()
	for k1, v1 := range mm.m {
		ts := f(k1, v1)
		for _, t := range ts {
			result.m[t.Key] = t.Val
		}
	}
	return result
}
func ( mm * FastIntIntMap ) FlatMap ( f func ( int , int ) [ ] FastIntIntTuple ) * FastIntIntMap { if mm == nil { return nil } result := NewFastIntIntMap ( ) for k1 , v1 := range mm . m { ts := f ( k1 , v1 ) for _ , t := range ts { result . m [ t . Key ] = t . Val } } return result }
FlatMap returns a new FastIntMap by transforming every element with the function f that
returns zero or more items in a slice.
FlatMap returns a new FastIntMap by transforming every element with the function f that returns zero or more items in a slice .