`map[key]?.let { f(it) } ?: init`
# getting-started
e
map[key]?.let { f(it) } ?: init
v
This is a good solution, but would it be considered idiomatic code, or cryptically terse?
e
If someone knows the basics of Kotlin, this will not be cryptic at all.
✔️ 1