aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/Logic
diff options
context:
space:
mode:
authorMarvin Borner2024-10-27 18:45:21 +0100
committerMarvin Borner2024-10-27 18:45:21 +0100
commitfe1fe57f358472561041cde12a48d28b8bd247a9 (patch)
tree53162ad90b27ff93ba8abe17c08c1a92d7b6faf1 /std/Logic
parentc6e39268be197a4eaccc0187271764a646017715 (diff)
Improvements in maps, sets, and parsing
Diffstat (limited to 'std/Logic')
-rw-r--r--std/Logic/Binary.bruijn2
1 files changed, 2 insertions, 0 deletions
diff --git a/std/Logic/Binary.bruijn b/std/Logic/Binary.bruijn
index b16595c..b5eec13 100644
--- a/std/Logic/Binary.bruijn
+++ b/std/Logic/Binary.bruijn
@@ -56,6 +56,8 @@ nor? [[1 1 0 false true]] ⧗ Boolean → Boolean → Boolean
# true if args are not same bools
xor? [[0 (1 false 0) 1]] ⧗ Boolean → Boolean → Boolean
+…^?… xor?
+
:test (xor? true true) (false)
:test (xor? true false) (true)
:test (xor? false true) (true)