9mm/lib/kvflip.fnl

7 lines
138 B
Plaintext
Raw Normal View History

(fn kvflip [t]
2024-05-30 01:26:41 +00:00
"takes a table of {key value} and returns a table of {value key}"
(collect [k v (pairs t)] (values v k)))
{: kvflip}
2024-05-30 01:26:41 +00:00