Home › Forums › kdb+ › Why sometimes the amend/index doesn’t work? › Re: Why sometimes the amend/index doesn’t work?
-
It’s because the dot operator always requires a list as the index. 1 2 1, 1 2 and () are lists, 1 is not. It works if you enlist it.
a1:.[myObj; enlist 1; {count x}];