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:06:45 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

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]