a = {foo -> 2, bar -> 4} a.get("foo") = 2 a["foo"] = 2