Join Slack
Powered by
`map[key]?.let { f(it) } ?: init`
# getting-started
e
edwardwongtl
07/11/2018, 7:39 AM
map[key]?.let { f(it) } ?: init
v
v
07/11/2018, 7:55 AM
This is a good solution, but would it be considered idiomatic code, or cryptically terse?
e
edwardwongtl
07/11/2018, 7:57 AM
If someone knows the basics of Kotlin, this will not be cryptic at all.
✔️ 1
2
Views
Open in Slack
Previous
Next