Re: [Bug-apl] Defining APL functions with [ ]

2014-06-03 Thread Juergen Sauermann
Hi Blake, thanks, done, Will be in the next SVN commit. /// Jürgen On 06/03/2014 05:24 PM, Blake McBride wrote: I like it, and I am in favor of it. It would just be great to add it to the documentation as an enhancement over APL 2. Thanks! Blake On Tue, Jun 3, 2014 at 5:15 AM, Juergen

Re: [Bug-apl] Defining APL functions with [ ]

2014-06-03 Thread Blake McBride
I like it, and I am in favor of it. It would just be great to add it to the documentation as an enhancement over APL 2. Thanks! Blake On Tue, Jun 3, 2014 at 5:15 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > Hi, > > yes, the reason is this: > > Sometimes you want to have

Re: [Bug-apl] Defining APL functions with [ ]

2014-06-03 Thread Juergen Sauermann
Hi, yes, the reason is this: Sometimes you want to have (user-defined) wrapper functions around primitives, for example to get some statistics about their use (how often called, averge size of arguments, etc). It is pretty easy to convert a normal APL program to one using the wrappers instead

Re: [Bug-apl] Defining APL functions with [ ]

2014-06-02 Thread Elias Mårtenson
As far as I understand, it's an extension that is unique to GNU APL. Regards, Elias On 3 June 2014 10:37, Blake McBride wrote: > Greetings, > > APL-1 did not allow functions to be defined with [ and ] in the header. > I've seen it done in GNU APL as follows: > > ∇fun[⎕]∇ > ∇ > [0]