> even one ~ less if you move the ~ outside the fork …

Yes, but with the two ~ you don't need the parens:

   tag=: i.~ ~: i:~

The i. and i: solution uses a similar idea as ~: *: ~:&.|., because i: has
the &.|. "built in".



On Sat, Dec 29, 2018 at 9:01 PM 'Rob Hodgkinson' via Programming <
[email protected]> wrote:

> Thanks Rick, works better, even one ~ less if you move the ~ outside the
> fork …
>
>    (i. ~: i:)~ t
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to