un-dict

I have a dict that I want to un-dict - and do a little more with. 

q)d:“SAB”!(enlist “A”;(“aAd”;“B”);(“bBc”;“”))

This is what I’m doing at the moment:

q){raze (,‘’).(key x; x)}d

“SA”

“AaAd”

“AB”

“BbBc”

,“B”

or

k){,/(,‘’).(!x;. x)}d

(“SA”;“AaAd”;“AB”;“BbBc”;,“B”)

is there a builtin that does {(key x;value x)}?

or is there a shorter way to write this operation?

thanks,

jack.

Hi,

the shortest way i can find is
k) ,/(!d),‘’. d

you can also write  {(key x;value x)} as   k)(!:;.:)@:

Markus