Home › Forums › kdb+ › Basic (but still intriguing to me) q Interpreter question › Re: Basic (but still intriguing to me) q Interpreter question
-
Hi JP, this is just the underlying k implementation of idesc: https://code.kx.com/q/ref/desc/#idesc
q)a:0 1 1 0 -1 0 1 -1 0 0 q)idesc k){$[0h>@x;'`rank;>x]} q)idesc[a]~(>)a 1b q) >a 1 2 6 0 3 5 8 9 4 7
The brackets allow q to interpret this, but the use is discouraged (https://code.kx.com/q/basics/exposed-infrastructure/#unary-forms). Rather use the idesc keyword instead.