There is another way that isn't _as_ kludgy, but still not as nice as the JavaScript proposal:
computation() |> then(&Map.put(my_map, key, &1))
It's the big reason the `then/2` function was created from my understanding.