diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/builtins.lisp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/res/builtins.lisp b/res/builtins.lisp new file mode 100644 index 0000000..7bab9b4 --- /dev/null +++ b/res/builtins.lisp @@ -0,0 +1,16 @@ +(defun comment (...) ((pure nil))) +(comment "comment is a noop function for documentation") + + +(comment "if! a strict version of a regular if, meaning it evaluates both the falsy and the truthy case, instead of only one.") +(defun if! (cond ifTrue ifFalse) (if cond ifTrue ifFalse)) +(export if!) + +(comment "return immediately returns a value where an invocation is expected") +(defun return (value) ((pure value))) +(export return) + +(comment "noop is a do nothing function") +(defun noop () (return nil)) +(export noop) + |