there is,
pyn =: 2 : ('u^:y n';':';'x u^:y n') NB. overkill to allow dyad case
(, +/@:(_2&{.)) pyn (1 1) 4
1 1 2 3 5 8
though henry's suggestion can be turned into a monadic verb,
((,[:+/_2&{.)@]^:[&0 1)
((,[:+/_2&{.)@]^:[&0 1) 4
0 1 1 2 3 5
On Saturday, July 20, 2019, 06:11:42 p.m. EDT, The3DSquare jOsHUa
<[email protected]> wrote:
Hello, I'm new to this forum. However, I have a quick question. The
conjugation ^: is represented as u ^: n y. Is there any way to make it
like u ^: y n?
Ie. Turning this:
(,[:+/_2&{.) ^: 4 (0 1)
into this:
(,[:+/_2&{.) ^: (0 1) 4
So essentially, swapping the two right-hand inputs for ^:.
Thanks!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm