Closed ngn closed 4 years ago
K6 has the following behavior:
a:b:1 2 3
b[2]:4
b
1 2 4
a
1 2 3
a:b:(,`k)!,0
b[`k]:1
b
(,`k)!,1
a
(,`k)!,0
Should be fixed.
At some point I need to totally rework the implementation of amend/dmend- they're a total mess.
Indexed assignment treats variables as refs rather than values, i.e. it modifies them in place even when their refcount is >1
I was expecting
a
to remain unchanged. Similarly with dicts: