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
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,
Hi Ala'a
APL has boolean operators ∧ for AND, ∨ for OR, ⍱ for NAND, ⍱ for NOR,
≠ for
EITHER-OR, = for
NOT-EITHER-OR, and so on (<, ≤, >, ≥, ...).
For two boolean values A and B, there are 16 possible functions
(some trivial)
with a
Hi,
Some languages support short circuiting evaluation for example in Python
known([word]) or known(edits1(word)) or known(edits2(word)) or [word]
Returns the first part ( 'or' is the delimiter) that return a True
(not False of which is the empty {}, others are None 0 "" () [])
Do I need to use