about summary refs log tree commit diff stats
path: root/util.fnl
blob: c884a01fa028b281aa83a4ff3daaa4e18f7305ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;;; UTIL.fnl
;; Utility functions
;; Copyright (C) 2022 Case Duckworth <acdw@acdw.net>
;; 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