I am using a dictionary to keep track of a few state variables in a simulation engine am writing. The state variables can be tables, other dictionaries, etc.
I need to update these state variables - following tries to update the dictionary a[invt][
rfqfills] and causes first a 'length error which I don’t quite get. And subsequently you find that it has partially updated the dictionary after all - which seems like a bug to me.
a:(market
invt)!(( foo:til 3; bar:baz);(enlist
rfqfills)!enlist (enlist`US80282KAE64)!(enlist -24f))
a[invt;
rfqfills]~(enlist `US80282KAE64)!enlist -24f
a[`invt;`rfqfills;`US80282KAE64] / -24f
a[`invt;`rfqfills;`foo] / 0nf
a[invt;
rfqfills]:(US80282KAE64
US00206RCN08)!-24 -15f / 'length - why?
a[invt;
rfqfills]~(US80282KAE64
US00206RCN08)!-24 0nf / updates!! - why?
Tahsin Alam