Kotlin Action - Chapter6 #5
ukhyun2402
started this conversation in
General
Replies: 1 comment
-
fun Array<Int?>.toNotNull(defaultValue: Int = 0) {
for (i in this.indices) {
this[i] = this[i] ?: defaultValue
}
} val a: Map<MutableMap<String?, Int?>?, Int> = mapOf( mutableMapOf<String?, Int?>("A" to 3) to 1) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions