```val value = map[key] map[key] = if (value == nu...
# getting-started
v
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?