|
Hi Ala'a the trick with ⎕EA is actually to return a value from a function only on success and no value (instead of an empty value) if not. 'Z←bar B' ⎕EA 'Z←foo B' ⍝ ... ⎕EA 'Z←XYZ B' ... If foo B returns no value then Z←foo B fails and (only then) will bar B be performed. As I said: "abuse ⎕EA". I believe your function below can be simplified like this: ∇ words candidates word →(⍴words←known word)↓0 →(⍴words←know edits1 word)↓0 →(⍴words←know edits2 word)↓0 words←⊂word ∇/// Jürgen On 09/17/2016 08:02 PM, Ala'a Mohammad
wrote:
Hi Jürgen, |
- [Bug-apl] Short circuiting expressions like OR and AND Ala'a Mohammad
- Re: [Bug-apl] Short circuiting expressions like OR ... Juergen Sauermann
- Re: [Bug-apl] Short circuiting expressions like... Ala'a Mohammad
- Re: [Bug-apl] Short circuiting expressions ... Juergen Sauermann
