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
|
signature.asc
Description: OpenPGP digital signature