Hi Raul,

I really like your approach with the dyadic use of &., and the sneaky
subtract and then re-add (very neat), but unfortunately _. doesn't work.

    [B=:>:&.>(i.1);(i.3);(i.5)
    open=:4 :'x+>y-&.>x'
    _. open B

so back to this (I'll make a verb out of it).

    max=.>./#&> B
    max&({.!._.)&> B

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

Reply via email to