I tried the explicit code. The gist I undersand that I can return values matching booleans on the left using ''#" 1 0 1 #(i.3)0 2
Originally I was trying ] and it's variations to get results, the correct one being #] I see. '13 :' is a neat utility. I prefer tacit to explicit, so should come handy for converting existing code. Thanks for helping! JmageK -- Securely sent with Tutanota Apr 30, 2019, 6:59 PM by [email protected]: > A slightly more gentle approach to the problem solved as Pascal gave is to > use the magical `13 :` construct as shown below; force the first 2 steps > into just one line and call the argument y . > > a=.(>&6) (2+i.9) > a# (2+i.9) > 7 8 9 10 > 13 : 'a#y[a=.(>&6) y' NB. 13 : produces a tacit result when it can > >&6 # ] > (>&6 # ]) 2+i.9 > 7 8 9 10 > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm > <http://www.jsoftware.com/forums.htm> > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
