What function is it? How can I execute that function? The only reasonable answers I can think of are "it's the function {1⊣⎕←2}" and "you can execute it by typing f and hitting ENTER", but that's clearly not true because when I type f and hit ENTER I don't see the number 2 printed to the session:
f 1 Thanks, Jay. On 7 August 2014 11:44, Juergen Sauermann <juergen.sauerm...@t-online.de> wrote: > The reason why ⎕NC shows 2 below is because 'f' is a variable whose current > value is a function. > > /// Jürgen > > > > > On 08/07/2014 10:52 AM, Jay Foad wrote: > > So the only benefit of the GNU APL approach is that it > allows the definition of niladic functions by assigning from a lambda. > > I don't understand. You can't use assignment to name a niladic lambda > in GNU APL, because it will be evaluated before the assignment > happens: > > f←{1⊣⎕←2} > 2 > f > 1 > ⎕NC'f' ⍝ it's an array, not a function > 2 > > Jay. > > >