[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Short circuiting expressions like OR and AND
From: |
Ala'a Mohammad |
Subject: |
Re: [Bug-apl] Short circuiting expressions like OR and AND |
Date: |
Sat, 17 Sep 2016 22:02:50 +0400 |
Hi Jürgen,
Thanks for the pointer.
I understand that ⎕EA is a guard and so 'does not succeed' does not
include the 'empty set' or 'no result'. for example in Gnu APL
'3' ⎕EA '0 0 0/ 1 2 3'
'3' ⎕EA '0 1 0/ 1 2 3'
2
What I was thinking of is something that will return 3 in the first,
since ⍬≡0 0 0/ 1 2 3
Please correct me If I got something-or-all wrong.
The following is what I was trying to simplify
∇ words candidates word
words ← known word
(0<⍴words)/exit
words ← know edits1 word
(0<⍴words)/exit
words ← know edits2 word
(0<⍴words)/exit
words ← ⊂word
exit:
Regards,
Ala'a