On Mon, Sep 20, 2010 at 1:25 PM, Zsbán Ambrus <amb...@math.bme.hu> wrote:
>   ve ([-[:{.[:((],~[-[:+/+/ .*~*(%+/&:*:"1)@]),:^:(2>#...@$))/,) sp

As a subquestion to the above, what's the idiomatic monad which takes
a noun of rank either 1 or 2 and upgrades it to rank 2 by prepending
an axis if necessary.  I use (,:^:(2>#...@$)) above but that's a bit
ugly.  ((i.0 0)&,) is another solution, but there might be something
even simpler.

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

Reply via email to