As I posted a couple of days ago, "guard" is enclosing an array with
0,~0,] on all axis(well, to be precise, from rank-1 and up).

   (0,~0,])"3 (0,~0,])"2 (0,~0,])"1 i.2 2 2
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0

0 0 0 0
0 0 1 0
0 2 3 0
0 0 0 0

0 0 0 0
0 4 5 0
0 6 7 0
0 0 0 0

0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0


I did it with 1) power and 2) insert but I found no way of doing this
in J with pure tacit definition.

I think "apply to all axis" is sometimes useful in some cases such as:
reversing on all axis:

   |."2 |."1 i. 3 3
8 7 6
5 4 3
2 1 0

Is there a way to make a tacit definition of the verb for arbitrary rank arrays?

Maybe I'd better define an adverb, instead.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to