Thank you, Cliff! Those fractal examples are quite pretty!

The operator in the first, #.@|:, is also fold, namely ([+2*])/, but the #.@|: 
expression is nicer and I like being able to use it rather than being forced to 
do ([+2*])/ as I would be in APL.

The other examples are even better in that you can't get the early termination 
semantics of i.&0 or i.&1 with a / fold (you could with the new F. family, and 
those are also nice examples pointed out by Jan-Pieter).

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

Reply via email to