From 54505db9f0cd1034a0d4cfe33abe1a518dec2af8 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sun, 19 Nov 2017 01:45:09 -0500 Subject: Boolean "not" --- actinide/stdlib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actinide/stdlib.py b/actinide/stdlib.py index 6edaf78..2e8b6ac 100644 --- a/actinide/stdlib.py +++ b/actinide/stdlib.py @@ -67,6 +67,10 @@ def and_(a, b): def or_(a, b): return op.or_(a, b) +@An.fn +def not_(a): + return not a + def let(symbols, bindings, *body): if nil_p(bindings): return list(*body) -- cgit v1.2.3