diff options
Diffstat (limited to 'lib/slice.fnl')
-rw-r--r-- | lib/slice.fnl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/slice.fnl b/lib/slice.fnl new file mode 100644 index 0000000..4f0de0f --- /dev/null +++ b/lib/slice.fnl @@ -0,0 +1,5 @@ +(fn slice [t start stop] + (fcollect [i start (or stop (length t))] + (. t i))) + +{: slice} |