From f265d24c0cacb92c7f7db19f364a155d87938184 Mon Sep 17 00:00:00 2001 From: dozens Date: Tue, 28 May 2024 15:04:00 -0600 Subject: inits --- lib/tail.fnl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/tail.fnl (limited to 'lib/tail.fnl') diff --git a/lib/tail.fnl b/lib/tail.fnl new file mode 100644 index 0000000..24de254 --- /dev/null +++ b/lib/tail.fnl @@ -0,0 +1,7 @@ +; return the table minus the head +(fn tail [t] + (icollect [i v (ipairs t)] + (if (> i 1) + v))) + +{: tail} -- cgit 1.4.1-2-gfad0