7 lines
138 B
Fennel
7 lines
138 B
Fennel
(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}
|
|
|