fun valuesNotNull(map: MutableMap) { map.computeIfAbsent(1) { k -> "new value" } } fun valuesNullable(map: MutableMap) { map.computeIfAbsent(1) { k -> null } } fun valuesT(map: MutableMap, newValue: T) { map.computeIfAbsent(1) { k -> newValue } } fun valuesTNotNull(map: MutableMap, newValue: T) { map.computeIfAbsent(1) { k -> newValue } } fun valuesTNullable(map: MutableMap, newValue: T?) { map.computeIfAbsent(1) { k -> newValue } }