blob: e23b680d6971f443211b671fcd887172c08897b2 [file] [log] [blame]
fun valuesNotNull(map: MutableMap<Int, String>) {
map.<caret>compute(1) { k, v -> null }
}
fun valuesNullable(map: MutableMap<Int, String?>) {
map.<caret>compute(1) { k, v -> v?.let { it + k } }
}
fun <T> valuesT(map: MutableMap<Int, T>, newValue: T) {
map.<caret>compute(1) { k, v -> null }
}
fun <T : Any> valuesTNotNull(map: MutableMap<Int, T>, newValue: T) {
map.<caret>compute(1) { k, v -> null }
}
fun <T : Any> valuesTNullable(map: MutableMap<Int, T?>, newValue: T?) {
map.<caret>compute(1) { k, v -> null }
}