NARS2000 requires the left and right arguments to have the same length:
1 ->2 3 2 / 10 20 30
LENGTH ERROR
1 ->2 3 2 / 10 20 30
?
->2 3 2 / 10 20 30
0 0 20 20 20 30 30
GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:
1 ->2 3 2 / 10 20 30
10 0 0 20 20 20 30 30
->2 3 2 / 10 20 30
LENGTH ERROR
->2 3 2/10 20 30
^ ^
The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.
On Mon, 30 Aug 2021 13:24:54 -0700 (PDT), Brian McGuinness <b.mcgui...@gmail.com> wrote:
NARS2000 requires the left and right arguments to have the same length:
1 ->2 3 2 / 10 20 30
LENGTH ERROR
1 ->2 3 2 / 10 20 30
?
2 3 2 / 10 20 300 0 20 20 20 30 30
GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:
1 ->2 3 2 / 10 20 30
10 0 0 20 20 20 30 30
2 3 2 / 10 20 30LENGTH ERROR
2 3 2/10 20 30^ ^
--- Synchronet 3.21d-Linux NewsLink 1.2The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.The following trace is from Dyalog:
1 ->2 3 2 / 10 20 30
LENGTH ERROR
1 ->2 3 2/10 20 30
^
I believe emulating Dyalog is a better choice than emulating APL2,
which seems to be starting down the path to abandonware.
NARS2000 requires the left and right arguments to have the same length:
1 ->2 3 2 / 10 20 30
LENGTH ERROR
1 ->2 3 2 / 10 20 30
reo
2 3 2 / 10 20 300 0 20 20 20 30 30
GNU APL requires the number of nonnegative values in the left argument to match the number of items in the right argument:
1 ->2 3 2 / 10 20 30
10 0 0 20 20 20 30 30
2 3 2 / 10 20 30LENGTH ERROR
2 3 2/10 20 30^ ^
The GNU APL approach seems to agree with the description of replicate in the IBM APL2 manual.sorry to hijack this thread, but are you learning GNU APL from the IBM manual? I cant find anything like 'Mastering dyalog APL' for using GNU APL.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 05:47:32 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
921 files (14,318M bytes) |
| Messages: | 264,603 |