Although I never used it, I can imagine using a Fold (F.. or F:.) instead of u/ in a dot product could be handy in some cases. This would allow early exit using Z: .
Jan-Pieter. On Tue, 10 Jan 2023, 05:12 Devon McCormick, <devon...@gmail.com> wrote: > Looking at about 300 examples of using dot in my own code, it looks like > every one has a reduction on the left. > > On Mon, Jan 9, 2023 at 10:51 PM Omar Antolín Camarena <o...@matem.unam.mx> > wrote: > > > > I sometimes use "(<x)+./ . E &> y" to look up any occurrences of > string x > > > in vector of strings y > > > > Sorry, my complaint was a silly typo mistake, your expression is fine: > > > > (<'ab') +./ .E.&> 'ac';'cab';'bca';'bab' > > 0 1 0 1 > > > > (I had written +./. E.&> with the dot and space swapped.) > > > > -- > > Omar > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > -- > > Devon McCormick, CFA > > Quantitative Consultant > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm