|
From: | Christian Robert |
Subject: | Re: [Bug-apl] Feature suggestion: multiple function arguments |
Date: | Thu, 3 Mar 2016 19:53:54 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |