getOrPut

inline fun getOrPut(key: K, defaultValue: () -> Float): Float

Returns the value to which the specified key is mapped, if the value is present in the map and not null. Otherwise, calls defaultValue() and puts the result in the map associated with key.