(,c,.-.c)#,a,.b
10 2 30

   a2=:10;20;30
   b2=: 1;2;3
   (,c,.-.c)#,a2,.b2
┌──┬─┬──┐
│10│2│30│
└──┴─┴──┘

2011/12/21 Johann Hibschman <jhibsch...@gmail.com>

>
>  a=: 10 20 30
>  b=: 1 2 3
>  c=: 1 0 1
>
> I want to get (10 2 30).
>
> I can get this by something like ((a*c)+b*-.c), but that breaks if a
> and b are boxes. For example, with
>
>  a2=:10;20;30
>  b2=: 1;2;3
>
> then that trick doesn't work. Is there a more direct way? I tried
> looking for this in the Phrases, but I couldn't find it there. There
> was a merge, but that was a more complex operation.
>
> Regards,
> Johann
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to