[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Each ¨ - behavior of func without parameter
From: |
Otto Diesenbacher-Reinmüller |
Subject: |
Each ¨ - behavior of func without parameter |
Date: |
Sun, 03 Jan 2021 14:32:10 +0100 |
User-agent: |
mu4e 1.4.13; emacs 28.0.50 |
Dear APLers,
I don't think this is a bug, but intentionally:
Doing f.e.:
{ 3 } ¨ ⍳5
results in gnu-apl to an error:
SYNTAX ERROR
λ1¨⍳5
^ ^
In other APLs, this works just fine, f.e. dyalog (or even april):
{ 3 } ¨ ⍳5
3 3 3 3 3
More general without Each/¨, f.e.
{ 3 } 55
results in gnu-apl in
3 55
but in dyalog (and others) in
3
What's the background of this different behavior in gnu-apl? I also
couldn't find any hint in IBMs APL2 Reference for this behavior.
br & and many thanks for any hint!
br Otto
- Each ¨ - behavior of func without parameter,
Otto Diesenbacher-Reinmüller <=