about summary refs log tree commit diff stats
path: root/util.fnl
diff options
context:
space:
mode:
authorCase Duckworth2022-07-28 21:36:38 -0500
committerCase Duckworth2022-07-28 21:36:38 -0500
commiteb6164bd523e85180c352d5a5b0a653cfde6f561 (patch)
tree6bac2393207ec9f02d5583a7ee2294ad00dc8bd1 /util.fnl
parentBegin converting to fennel (diff)
downloadradish-eb6164bd523e85180c352d5a5b0a653cfde6f561.tar.gz
radish-eb6164bd523e85180c352d5a5b0a653cfde6f561.zip
Modularize
This ... doesn't work.
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