10 lines
284 B
Text
10 lines
284 B
Text
|
|
fun main(a: Array<String>) {
|
||
|
|
val map = mapOf("hello" to 1, "world" to 2, "!" to 3)
|
||
|
|
|
||
|
|
with(map) {
|
||
|
|
entries.forEach { println("key = ${it.key}, value = ${it.value}") }
|
||
|
|
keys.forEach { println("key = $it") }
|
||
|
|
values.forEach { println("value = $it") }
|
||
|
|
}
|
||
|
|
}
|