Created
August 20, 2017 18:36
-
-
Save Pozo/bdffe8987e0fac5a19ea13c2d3ed86f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun lazyMap() { | |
val map = mutableMapOf("aaa" to mutableListOf(32)) | |
map.putIfAbsent("aaa", mutableListOf(2))?.add(2) | |
println(map) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment