[Jprogramming] Power

David Vaughan purpleblues13 at googlemail.com
Sun Nov 20 21:51:51 HKT 2011


This seems to have the behaviour I'm looking for, thanks.

I don't understand why though. I can see that each result of f is being stored in a list as the verb is being applied each time, but I don't understand why ~.@, enables this.

On 20 Nov 2011, at 13:31, Raul Miller wrote:

> You can do
>  (~.@, f@{:)^:_ y
> 
> But I am not sure how to work <x into this.
> 
> -- 
> Raul
> 
> On Sun, Nov 20, 2011 at 5:36 AM, David Vaughan <purpleblues13 at googlemail.com
>> wrote:
> 
>> If I'm doing f^:(<x) y, can I write an expression so that f is repeatedly
>> applied to y until the result has come up before?
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list