9mm/lib/keys.fnl

8 lines
149 B
Plaintext
Raw Normal View History

2024-05-30 01:26:41 +00:00
(fn keys [t]
"takes a table returns a sequential list of its keys"
(local out [])
(each [k v (pairs t)] (table.insert out k))
out)
{: keys}