Join Slack
Powered by
```val value = map[key] map[key] = if (value == nu...
# getting-started
v
v
07/11/2018, 7:36 AM
Copy code
val value = map[key] map[key] = if (value == null) init else f(value)
Is there a neater way of writing this, e.g. without the top-level temporary variable?
Open in Slack
Previous
Next