aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/abstract
diff options
context:
space:
mode:
authorEduardo Julian2019-06-19 22:37:28 -0400
committerEduardo Julian2019-06-19 22:37:28 -0400
commit252e17e22d3e61e08c01e14ca5365d8195cc51b4 (patch)
treed9284c9cf80b3feedfb2bce0da9caf5e7ac162d6 /stdlib/source/lux/abstract
parent932a1d5941bb80a41cbb11944d67d7366351c89a (diff)
Various fixes.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/abstract/equivalence.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/lux/abstract/equivalence.lux b/stdlib/source/lux/abstract/equivalence.lux
index b773505de..d23f37942 100644
--- a/stdlib/source/lux/abstract/equivalence.lux
+++ b/stdlib/source/lux/abstract/equivalence.lux
@@ -18,16 +18,16 @@
(def: #export (sum left right)
(All [l r] (-> (Equivalence l) (Equivalence r) (Equivalence (| l r))))
(structure
- (def: (= a|b x|y)
- (case [a|b x|y]
- [(0 a) (0 x)]
- (:: left = a x)
+ (def: (= reference sample)
+ (case [reference sample]
+ [(#.Left reference) (#.Left sample)]
+ (:: left = reference sample)
- [(1 b) (1 y)]
- (:: right = b y)
+ [(#.Right reference) (#.Right sample)]
+ (:: right = reference sample)
_
- #0))))
+ false))))
(def: #export (rec sub)
(All [a] (-> (-> (Equivalence a) (Equivalence a)) (Equivalence a)))