9mm/lib/head.fnl

7 lines
123 B
Plaintext
Raw Normal View History

2024-05-28 21:04:00 +00:00
; return the first item in a table
(fn head [t] (if (> (length t) 0)
(?. t 1)
[]))
{: head}