On Sun, Sep 5, 2010 at 6:19 PM, Marshall Lochbaum
<[email protected]> wrote:
> I do really like the idea of this being I.^:_1. A lot of times I have had an
> array of indices that I would like to get to an array of 1s, and I have been
> forced to use something like (i.n) e. l (list is l, max index is n).
> Making I.^:_1 equal to ([: <:@(#/.~) i.@>:@(>./) , ]) would be really
> useful.

And perhaps !. could be used to specify the maximum
index if <./ gets that wrong?

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

Reply via email to