bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda


From: Juergen Sauermann
Subject: Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda
Date: Wed, 09 Jul 2014 16:14:32 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi,

actually - no. I called it OUTER_OMEGA to make clear what it does.
Maybe you like

      { ⍵ + {⍵×WW} 10 ⊣ WW←⍵ } 100
1100

imore?


On 07/09/2014 04:08 PM, Elias Mårtenson wrote:
I know, but it's much more ugly than my proposal, don't you think?

Regards,
Elias


On 9 July 2014 22:06, Juergen Sauermann <address@hidden> wrote:
Hi Elias,

that would be very easy to implement:

      { ⍵ + { ⍵ × OUTER_OMEGA } 10 ⊣ OUTER_OMEGA←⍵ } 100
1100

/// Jürgen



On 07/09/2014 10:53 AM, Elias Mårtenson wrote:
It would be nice to be able to access the values of ⍵ and ⍺ (and I suppose χ) from the outer lambda from a nested lambda.

I.e, I'd like to following to return the value 1100:

      { ⍵ + {⍵×⍵⍵} 10 } 100

In other words, the ⍵⍵ in the inner lambda would refer to the value 100 (i.e. the value of ⍵ in the outer lambda).

Would this be easy to implement?

Regards,
Elias




reply via email to

[Prev in Thread] Current Thread [Next in Thread]