cancel
Showing results for 
Search instead for 
Did you mean: 

Is This An Indexing At Depth Elided Index Bug?

erik_friis
New Contributor III

Is this an elided indexing bug?

 

q)myList: (1 2 3; 4; (5 6 7; 8 9 10))

 

q)myList[;]

1 2 3

4

(5 6 7;8 9 10)

Since the 2nd item of the list is an atom, I would not have expected to be able to use indexing at depth with two elided indexes as this would seem to me to be the equivalent of indexing into an atom.

Interestingly enough you do get a 'type error when executing the following indexed assignment, but you also end up with the partial assignment:

q)myList[;] : 0
'type

q)myList
0 0 0
4
(5 6 7;8 9 10)   
0 REPLIES 0