-
Swap key-value in dictionary
hi, how can I swap key and list of values using q? Thanks!
python version: https://stackoverflow.com/questions/51740270/python-dictionary-swap-keyvalue-pair-when-values-exist-in-mutiple-keys
for example:
1 2 3!(4 5 3;6 7 3;4 1)
becomes
1 3 4 5 6 7!(enlist 3;1 2;1 3;enlist 1;enlist 2;enlist 2)
Log in to reply.