[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] This looks wrong
From: |
Jay Foad |
Subject: |
Re: [Bug-apl] This looks wrong |
Date: |
Thu, 7 Aug 2014 12:04:25 +0100 |
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 <address@hidden> 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.
>
>
>
- Re: [Bug-apl] This looks wrong, (continued)
- Re: [Bug-apl] This looks wrong, Juergen Sauermann, 2014/08/05
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/06
- Re: [Bug-apl] This looks wrong, Juergen Sauermann, 2014/08/06
- Re: [Bug-apl] This looks wrong, Jay Foad, 2014/08/07
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/07
- Re: [Bug-apl] This looks wrong, Jay Foad, 2014/08/07
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/07
- Re: [Bug-apl] This looks wrong, Jay Foad, 2014/08/07
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/07
- Re: [Bug-apl] This looks wrong, Juergen Sauermann, 2014/08/07
- Re: [Bug-apl] This looks wrong,
Jay Foad <=
- Re: [Bug-apl] This looks wrong, Juergen Sauermann, 2014/08/07
- Re: [Bug-apl] This looks wrong, Juergen Sauermann, 2014/08/07
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/07
- Re: [Bug-apl] This looks wrong, Jay Foad, 2014/08/07
- Re: [Bug-apl] This looks wrong, Juergen Sauermann, 2014/08/07
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/08
- Re: [Bug-apl] This looks wrong, Elias Mårtenson, 2014/08/08