diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-10 14:25:09 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-05-10 14:37:22 +0000 |
| commit | 966eef2d6557eeffc5b5c7b379efc1f2e7d0de0b (patch) | |
| tree | 524d983750073d17a8adfed2c90550ebd0e0501f /alv-lib | |
| parent | add and test Type:eq(a,b) (diff) | |
| download | alive-966eef2d6557eeffc5b5c7b379efc1f2e7d0de0b.tar.gz alive-966eef2d6557eeffc5b5c7b379efc1f2e7d0de0b.zip | |
make <num! 4> == <num= 4>
Diffstat (limited to 'alv-lib')
| -rw-r--r-- | alv-lib/logic.moon | 5 |
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 |
