// Get retrieves an item from the intmap and returns value, true or
// 0, false if the item isn't in this map.
Get retrieves an item from the intmap and returns value, true or
0, false if the item isn't in this map.
// Get retrieves an item from the intmap and returns value true or // 0 false if the item isn ' t in this map .
func (I *IntMap) Get(key KeyType) (ValType, bool) {
	if key == Free {
		if I.freeSet {
			return I.freeVal, true
		}
		return 0, false
	}
	index := I.index(key)
	for {
		definedKey := I.data[index]
		if definedKey == Free {
			return 0, false
		}
		if key == definedKey {
			return ValType(I.data[index+1]), true
		}
		index = I.next(index)
	}
}
func ( I * IntMap ) Get ( key KeyType ) ( ValType , bool ) { if key == Free { if I . freeSet { return I . freeVal , true } return 0 , false } index := I . index ( key ) for { definedKey := I . data [ index ] if definedKey == Free { return 0 , false } if key == definedKey { return ValType ( I . data [ index + 1 ] ) , true } index = I . next ( index ) } }
Get retrieves an item from the intmap and returns value, true or
0, false if the item isn't in this map.
Get retrieves an item from the intmap and returns value true or 0 false if the item isn ' t in this map .