9mm/lib/kvflip.fnl
dozens f985dc4e5c feat: add moving phase
also moves `moves` into the game object and moves updating `moves` to
game:update
2024-06-06 22:49:52 -06:00

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}