about summary refs log tree commit diff stats
path: root/util.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'util.fnl')
-rw-r--r--util.fnl13
1 files changed, 13 insertions, 0 deletions
diff --git a/util.fnl b/util.fnl new file mode 100644 index 0000000..c884a01 --- /dev/null +++ b/util.fnl
@@ -0,0 +1,13 @@
1;;; UTIL.fnl
2;; Utility functions
3;; Copyright (C) 2022 Case Duckworth <acdw@acdw.net>
4;; License: Good Choices (https://acdw.casa/gcl)
5
6(local util {})
7
8(lambda util.printlns [?sep ...]
9 "Print arguments as strings, delimited by ?SEP.
10?SEP defaults to '\n', but can be anything."
11 (print (table.concat [...] (or ?sep "\n"))))
12
13util