On Wed, 9 Feb 2022, 'Pascal Jasmin' via Programming wrote:

Jose/Pepe has done this.  afaiu I think it is a way to avoid unnecessary intermediate names.

I was going to ask: how? But then I realised it is completely possible to define this as-is:

recur=: 13!:8@21
scope=: {{
 old_recur=. recur
 recur=: u
 r=. u y
 recur=: old_recur
 r }}

Season with try. and ambivalence to taste.

(That said, you cannot retain the old behaviour of $: in cases where you have not explicitly specified a scope.)

 -E
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to