Home › Forums › kdb+ › Swap key-value in dictionary › Re: Swap key-value in dictionary
-
Another method:
q){a!x a:asc key x:group(!). flip raze key[x],''value x}d 1| ,3 3| 1 2 4| 1 3 5| ,1 6| ,2 7| ,2
Please confirm you want to block this member.
You will no longer be able to:
Please allow a few minutes for this process to complete.