On Mathematica 12.2 the code
x = <||>;
AssociateTo[x, "foo" -> {{1, 2}, {3, 4}}]
x["foo"][[1]] += {0, 1}
raises the error
Set::setps: x[foo] in the part assignment is not a symbol.
whereas
x["foo"][[1]]
returns {1,2} just fine.
Should the increment work?
x["foo"][[1]]is not a symbol so you cannot set it with=. – flinty Sep 13 '21 at 11:12