3 ms·
what's wrong with just using obj["a"] = 1; obj["b"] = 2; Print[obj["a"]] or obj = { "a" -> 1, "b" -> 2 }; Print["a" /. obj] ?
by tokipin 13y ago
what's wrong with just using
obj["a"] = 1;
obj["b"] = 2;
Print[obj["a"]]
or
obj = { "a" -> 1, "b" -> 2 };
Print["a" /. obj]
?
- taliesinb 13y agoBecause those are really poor substitutes for Associations, though one can make do.