DEV Community

Discussion on: A small piece of code which is going to inspire you to try out Kotlin

Collapse
pozo profile image
Zoltan Polgar Author

Hi Evan, thank you for this snippet! I wasn't familiar with computeIfAbsent method. :)

Collapse
evanoman profile image
Evan Oman

No problem! It is amusing watching Java add a lot of these kinds of features from Scala and Kotlin.