[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Beginner question: assigning functions to variables

From: Kaspar Emanuel
Subject: Re: [Bug-apl] Beginner question: assigning functions to variables
Date: Mon, 30 Apr 2018 14:31:12 +0000

Thanks Juergen, I'll try and unpack that when I have time. I think the only good reason to write either of these examples is to gain understanding i.e. to see that functions can be assigned to variables. Programming examples that are just for learning are often a bit contrived I guess.

On 30 April 2018 at 13:40, Juergen Sauermann <address@hidden> wrote:
Hi Kaspar,

GNU APL closely follows IBM APL2 and the ISO standard for APL. Your syntax below is
not valid in APL2 or in ISO APL.

The IBM APL2 documentation used to be downloadable from IBM's APL2 web page (file apl2lrm.pdf).

In theory you could do

      1 a 1

in GNU APL, but I  can't think of a good reason why you would want to to that.
Other than obscuring your code, of course.

Best Regards,
/// Jürgen

On 04/30/2018 04:10 AM, Kaspar Emanuel wrote:
Hello all,

Sorry, this might be a stupid question, but I have just started working through https://tutorial.dyalog.com (site seems to have gone down just now as well) and in it they suggest assigning functions to a variable. Something like:

    1 a 1

In GNU APL this gives a syntax error. I am guessing this is not standard APL? I tried searching online and in the PDF linked from the GNU APL site but didn't come up with anything. Should I just ignore that part of the tutorial or is there something similar in GNU APL?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]