|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] assignment to many variables |
Date: | Thu, 11 Feb 2016 12:30:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Alex, in APL you do not pass variables to a function, you pass values. In your example I believe you could (conceptually) something like this: fun (a b c ...)←1 (2 3) 4 ... Since you pass values and not variables, the vector assignment above is not needed and you could pass the value directly (the advantage or maybe disadvantage of the vector assignment above is that an incorrect number of arguments will be detected before fun is called, and that the number of items is made explicit): fun 1 (2 3) 4 ... inside the function, you then simply "undo" the above "assignment": ∇fun B (a b c ...) ← B ... /// Jürgen On 02/11/2016 03:27 AM,
address@hidden wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |