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