I'm working through the Kx Technology Training Course, and there's a line that says
"Enlist applies to all data objects; the result for any data object is a one-item list whose item is that object. For example"
enlist(2 5;3.5 10 12)
,(2 5;3.5 10 12)
This result is not a one dimensional list of floats. It is instead a 2-D list of count one who's sole element is a 1-D list of floats
but when I do the example exactly as is in Q I don't get that. I get
enlist(2 5;3.5 10 12)
2 5 3.5 10 12
so the following works, which I'd expect not to work given the explanation of the supposed structure:
enlist(2 5;3.5 10 12)+1
3 6 4.5 11 13
Whats going on?
It is just the way q console display the output. Your list is still enlisted.
If you do a simple count, you will notice the difference:
Or even a simple indexing:
Or you can switch to k console to see the result:
Also
+
operator works through nested structure, that's why it won't error out.