#\ is inefficient in J6 but has special code in J7. FYI,
-- Raul On Tue, Sep 18, 2012 at 10:36 AM, Brian Schott <[email protected]> wrote: > That is very clever. I don't think I have ever seen or thought of > using #\ and I haven't even yet investigated inv# especially as the > middle of a fork. > > On Tue, Sep 18, 2012 at 10:08 AM, Raul Miller <[email protected]> wrote: >> >> takecut=: *@[ #inv ] </.~ +/\@[ I. #\@] >> 0 0 3 3 0 2 takecut i. 7 >> ┌┬┬─────┬─────┬┬─┐ >> │││0 1 2│3 4 5││6│ >> └┴┴─────┴─────┴┴─┘ >> >> -- >> Raul > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
