7 lines
138 B
Plaintext
7 lines
138 B
Plaintext
|
(fn kvflip [t]
|
||
|
"takes a table of {key value} and returns a table of {value key}"
|
||
|
(collect [k v (pairs t)] (values v k)))
|
||
|
|
||
|
{: kvflip}
|
||
|
|