I wrote:
> ans=: ("."1 # ])@pos

". is already rank 1, so
   ans=: (". # ])@pos
would work just as well (and I think it's slightly faster, but I don't
have the patience to properly test that -- my off the cuff timings
for 'five = one + four' are around 60 seconds for the first variant
and 50 seconds for the second).

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

Reply via email to