bug-apl
[Top][All Lists]
Advanced

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

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


From: Juergen Sauermann
Subject: Re: [Bug-apl] Beginner question: assigning functions to variables
Date: Mon, 30 Apr 2018 15:40:50 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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

      a←{⍺+⍵}
      1 a 1
2


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:

    a←+
    )fns
a
    1 a 1
2

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?

Cheers,

Kaspar

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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