Perhaps worth noting that if #: (or #.inv) did not lose the sign bit, we could use:
Foo=: /: #: or Foo=: /: #.inv for this... Then again, we'd also need #. (or some similar operation) to interpret that sign bit. Anyways, for now, we have: #.#.inv i:4 4 5 6 7 0 1 2 3 4 Which I find frustrating... Thanks, -- Raul On Wed, Dec 12, 2018 at 11:03 AM Raul Miller <[email protected]> wrote: > > Here's another variation, I'm not sure if it's elegant enough... > > Foo=: /: >./ | %&3 > > Thanks, > > -- > Raul > > On Wed, Dec 12, 2018 at 10:58 AM Raul Miller <[email protected]> wrote: > > > > Oops, thanks... > > > > Foo=: (/:3|*)@/:~ > > > > Seems like it could be simpler, though - I'll have to think about this... > > > > Thanks again, > > > > -- > > Raul > > > > On Wed, Dec 12, 2018 at 10:55 AM Henry Rich <[email protected]> wrote: > > > > > > Foo _2 0 3 _1 > > > 0 3 _2 _1 > > > Foo _1 0 3 _2 > > > 0 3 _1 _2 > > > > > > > > > Henry Rich > > > > > > > > > On 12/12/2018 10:50 AM, Raul Miller wrote: > > > > Foo=:/:3|* > > > > Foo i:4 > > > > 0 1 2 3 4 _4 _3 _2 _1 > > > > > > > > Thanks, > > > > > > > > > > > > > --- > > > This email has been checked for viruses by AVG. > > > https://www.avg.com > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
