// Put adds an item to the int map
Put adds an item to the int map
// Put adds an item to the int map
func (I *IntMap) Put(key KeyType, val ValType) {
	if key == Free {
		I.freeVal = val
		I.freeSet = true
		return
	}
	index := I.index(key)
	for {
		definedKey := I.data[index]
		if key == definedKey || definedKey == Free {
			if definedKey == Free {
				I.size++
				I.data[index] = key
			}
			I.data[index+1] = KeyType(val)
			break
		}
		index = I.next(index)
	}
	I.expand()
}
func ( I * IntMap ) Put ( key KeyType , val ValType ) { if key == Free { I . freeVal = val I . freeSet = true return } index := I . index ( key ) for { definedKey := I . data [ index ] if key == definedKey || definedKey == Free { if definedKey == Free { I . size ++ I . data [ index ] = key } I . data [ index + 1 ] = KeyType ( val ) break } index = I . next ( index ) } I . expand ( ) }
Put adds an item to the int map
Put adds an item to the int map