Kenneth
thana
foo.put("key", foo.getOrPut("key") { -1 } + 1)
spand
.compute("key") { k, v -> if (v != null){ v + 1 } else 0 }