From eb6164bd523e85180c352d5a5b0a653cfde6f561 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 28 Jul 2022 21:36:38 -0500 Subject: Modularize This ... doesn't work. --- util.fnl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 util.fnl (limited to 'util.fnl') diff --git a/util.fnl b/util.fnl new file mode 100644 index 0000000..c884a01 --- /dev/null +++ b/util.fnl @@ -0,0 +1,13 @@ +;;; UTIL.fnl +;; Utility functions +;; Copyright (C) 2022 Case Duckworth +;; License: Good Choices (https://acdw.casa/gcl) + +(local util {}) + +(lambda util.printlns [?sep ...] + "Print arguments as strings, delimited by ?SEP. +?SEP defaults to '\n', but can be anything." + (print (table.concat [...] (or ?sep "\n")))) + +util -- cgit 1.4.1-21-gabe81