summaryrefslogtreecommitdiff
path: root/lib/utils.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.fnl')
-rw-r--r--lib/utils.fnl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/utils.fnl b/lib/utils.fnl
new file mode 100644
index 0000000..3220952
--- /dev/null
+++ b/lib/utils.fnl
@@ -0,0 +1,5 @@
+(fn must [...]
+ (local (ok? result) ...)
+ (if ok? result (error result)))
+
+{: must}