I think the primary benefit of that notation is instructional. add=: 1&+ 2 add 3 5
There's more efficient ways of achieving the same end, but efficiency is not always the most important issue. -- Raul On Mon, Aug 17, 2020 at 10:25 AM Hauke Rehr <hauke.r...@uni-jena.de> wrote: > > dyadic m&f … > > first I thought I should learn this construct > now I think I don’t need to > > any suggestions? > is this considered an idiom that ought to be known and used? > > Am 17.08.20 um 16:20 schrieb Henry Rich: > > On the current implementation it is much preferable to use > > > > bitmask operator@]^:["0 operand > > > > rather than > > > > bitmask 0&(] operator)"0 operand > > > > They both execute at low rank, but the second version reinterprets the > > internal form ( 0&(] operator)^:bitmask ) for each atom. > > > > > > > > I have yet to find an application where (x m&v y) is needed. Does anyone > > have one? In the example above, the 0& could be any value and is used > > only as a way of getting the power function. > > > > > > Henry Rich > > > > > > > > > > On 8/17/2020 9:30 AM, David Lambert wrote: > >> Yes, thank you Roger for this explanation of dyadic & which i've recently > >> been thinking about how to incorporate into my j programming. > >> > >> |Date: Sun, 16 Aug 2020 21:00:42 +0000 (UTC) > >> |From: "'Pascal Jasmin' via Programming" <programm...@jsoftware.com> > >> |To: "programm...@jsoftware.com" <programm...@jsoftware.com> > >> |Subject: Re: [Jprogramming] conditional application defined by bitmask > >> |Message-ID: <316224114.2834748.1597611642...@mail.yahoo.com> > >> |Content-Type: text/plain; charset=UTF-8 > >> | > >> |Roger's solution includes an intermediate-advanced J concept I knew > >> about, > >> and an advanced realization I did not previously realize/know about. > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > ---------------------- > mail written using NEO > neo-layout.org > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm