aboutsummaryrefslogtreecommitdiffstats
path: root/alv-lib
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-10 14:25:09 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:23:21 +0000
commitd36259f60b3e6f6077710905d5f7fcfd9f1710fc (patch)
treeec6975f00af35b0faf83f8c20b7ad0eab6e7ae7f /alv-lib
parentadd and test Type:eq(a,b) (diff)
downloadalive-d36259f60b3e6f6077710905d5f7fcfd9f1710fc.tar.gz
alive-d36259f60b3e6f6077710905d5f7fcfd9f1710fc.zip
make <num! 4> == <num= 4>
Diffstat (limited to 'alv-lib')
-rw-r--r--alv-lib/logic.moon5
1 files changed, 3 insertions, 2 deletions
diff --git a/alv-lib/logic.moon b/alv-lib/logic.moon
index c3cc66f..aaf255e 100644
--- a/alv-lib/logic.moon
+++ b/alv-lib/logic.moon
@@ -59,10 +59,11 @@ eq = Constant.meta
return
{ :first, :rest } = @unwrap_all!
+ type = @inputs.first\type!
equal = true
for other in *rest
- if first != other
+ if not type\eq first, other
equal = false
break
@@ -89,7 +90,7 @@ not_eq = Constant.meta
diff = true
for a=1, #@inputs-1
for b=a+1, #@inputs
- if @inputs[a].stream == @inputs[b].stream
+ if @inputs[a].result == @inputs[b].result
diff = false
break