9mm/lib/slice.fnl

6 lines
93 B
Fennel

(fn slice [t start stop]
(fcollect [i start (or stop (length t))]
(. t i)))
{: slice}