Skip to content

Commit ee34d9e

Browse files
authored
feat: support if-not (#796)
this puts in place support for a stronger variant of `if-not-zero`
1 parent 48b8b70 commit ee34d9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/corset/stdlib.lisp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
(defpurefun (if-not-zero cond then) (if (as-bool cond) then))
1717
(defpurefun (if-not-zero cond then else) (if (as-bool cond) then else))
1818

19+
(defpurefun (if-not (cond :𝔽@loob) then) (if (as-bool cond) then))
20+
(defpurefun (if-not (cond :𝔽@loob) then else) (if (as-bool cond) then else))
21+
1922
(defpurefun ((as-bool :𝔽@bool :force) x) x)
2023
(defpurefun ((is-binary :𝔽@loob :force) e0) (* e0 (- 1 e0)))
2124

0 commit comments

Comments
 (0)