summary refs log tree commit diff
path: root/lib/head.fnl
blob: ddee698b80d5899672141e6bea540c139d0f40d5 (plain)
1
2
3
4
5
6
; return the first item in a table
(fn head [t] (if (> (length t) 0)
               (?. t 1)
               []))

{: head}