Hi Collin
   x&f^:3 y

for example:
   ((2&+)^:3)3
9
   2+2+2+3

9


- Bo

--- Den fre 19/3/10 skrev Collin Monahan <[email protected]>:

Fra: Collin Monahan <[email protected]>
Emne: [Jprogramming] recursive composition
Til: [email protected]
Dato: fredag 19. marts 2010 03.50


I have a dyad f that returns a value to be used in a successive call's RHS. Thus

x f x f x f y

specifies 3 repetitions of a process during which a table is built.

Is there a way to simplify it so that I can say 3 instead of writing it three 
times?



      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


__________________________________________________
Bruger du Yahoo!?
Er du træt af spam?  Yahoo!Mail har den bedste spambeskyttelse, der findes 
http://dk.mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to