9mm/lib/tail.fnl

8 lines
129 B
Plaintext
Raw Normal View History

2024-05-28 21:04:00 +00:00
; return the table minus the head
(fn tail [t]
(icollect [i v (ipairs t)]
(if (> i 1)
v)))
{: tail}