Here it works to create tacit with 13 by using three lines
f=. 13 : 0
('';,.x),.(y);x +/ y
)
f
('' ; [: ,. [) ,. ] ; +/
a f b
┌─┬───────┐
│ │0 1 2 3│
├─┼───────┤
│2│2 3 4 5│
│3│3 4 5 6│
│5│5 6 7 8│
└─┴───────┘
I I now to to create it on one line it does not work this
f=, 13 : 0 '((i. 0);,.x),.(y);x +/ y'
)
|domain error
| f=, 13 :0'((i. 0);,.x),.(y);x +/ y'
If I do it like this the same thing
f
('' ; [: ,. [) ,. ] ; +/
f=.((i. 0) ; [: ,. [) ,. ] ; +/
It now works
f
((i.0) ; [: ,. [) ,. ] ; +/
a f b
┌─┬───────┐
│ │0 1 2 3│
├─┼───────┤
│2│2 3 4 5│
│3│3 4 5 6│
│5│5 6 7 8│
└─┴───────┘
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm