|
From: | Kaspar Emanuel |
Subject: | Re: [Bug-apl] Beginner question: assigning functions to variables |
Date: | Mon, 30 Apr 2018 13:24:36 +0000 |
Look at quadCR and quadFX
Hi,Yes, this syntax is referred to as “tacit” or “point-free” syntax as it doesn’t involve any variables, and is non-ISO syntax. It’s taken from the J programming language, which is an APL-like language (its descendent actually), and is specific to Dyalog (perhaps NARS as well?).Quite a bit can be done with it, but nothing can be done that can’t be done with standard traditional functions (defined with the Del editor or similar methods) and dynamic functions (the ones with curly braces, which are by the way non-standard syntax as well).To put things simply, most (all?) lines of standard APL code must end with data (not a function, including those enclosed in parentheses.Cheers,LouisHello 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←+)fnsa1 a 12In 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
[Prev in Thread] | Current Thread | [Next in Thread] |