Further to Dan's comment you can also use 'atop'...
Dan's solution: u=:([: < 3 ; <)
Also using atop: v=:<@ (3 ; ]) NB. Read as "box the result
of (3 link rightarg)"
.../Regards Rob
On 27/12/2008, at 10:15 AM, Steven Taylor wrote:
> Hi,
>
> I've been trying to put together a verb that constructs a box of two
> boxes,
> where the 2nd inner box is to be the right operand of the verb. The
> verb is
> monadic.
>
> example:
> <3;4
>
> The attempt:
> j=:(<3;])
> j 4
> |domain error: j
> | j 4
> the idea was to have a shorthand
>
> instead of
> a=.i. 4 5
> (<3;4) {a
> 19
> have something like
> j 4{a
>
> thanks,
> --Steven
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm