// Put adds the typ to the map and returns true if it already existed.
Put adds the typ to the map and returns true if it already existed.
// Put adds the typ to the map and returns true if it already existed .
func (m TypeMap) Put(typ types.Type) bool {
	if _, ok := m[typ.String()]; ok {
		return true
	}
	m[typ.String()] = typ
	return false
}
func ( m TypeMap ) Put ( typ types . Type ) bool { if _ , ok := m [ typ . String ( ) ] ; ok { return true } m [ typ . String ( ) ] = typ return false }
Put adds the typ to the map and returns true if it already existed.
Put adds the typ to the map and returns true if it already existed .