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