blob: e355c2f8458f965d1f49bafd4a73197a62ac6bee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(defun comment (...) ((pure nil)))
(comment "comment is a noop function for documentation")
(export comment)
(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)
(comment "boolean atoms")
(def true :true)
(def false :false)
(export true false)
|