You can also use something like this

      ∇multi a;a1;a2;a3
[1] (a1 a2 a3)←a
[2] ⍕a1
[3] ⍕a2
[4] ⍕a3
[5] ∇
      multi 3 5 7
3
5
7

I think that implementing this "a la Dyalog" way is possible
but would not be trivial source changes.


Xtian.

On 2016-03-03 17:17, Alexey Veretennikov wrote:
Hi,

In GNU APL in order to supply several (>2) arguments to the function I
have to write something like this:

∇multi a;a1;a2;a3
a1←a[1]
a2←a[2]
a3←a[3]
⍕a1
⍕a2
⍕a3

In Dyalog APL I can just write
∇multi(a1 a2 a3)
⍕a1
⍕a2
⍕a3

The same syntax in GNU APL lead to an errer in function header. Can we
have the same syntax as in the Dyalog APL since it looks like it will not break 
any compatibility?



Reply via email to