Andrew Nikitin wrote:
> eliminate most of double recursion by using short scheme for +.
Oleg has contributed a number of "shortcutted" equivalents to the Boolean
verbs, on the Wiki:
http://www.jsoftware.com/jwiki/Essays/Short%20Circuit%20Boolean
In the case of +. the shortcutted equivalents are:
2 : 'u`1:@.v'
2 : 'u^:(-...@v)'
(I haven't tested them in this case).
BTW, I was impressed by your earlier contribution to another thread:
> 35.5&<.&.(+/\)10 12 14 16 18
My initial thought was also +/\^:_1 but I didn't have time to play with it.
Kudos.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm