[Jprogramming] 'a b c' =. 1;2;3 unboxes?
Henry Rich
HenryHRich at nc.rr.com
Fri Jun 1 04:55:14 HKT 2012
I don't know that it has an official name. I called it multiple
assignment in JfC.
We have also the multiple AR assignment
'`plus minus' =. +`-
and the indirect assignment
names =. ;: 'one two'
(names) =. 1 2
Henry Rich
On 5/31/2012 12:24 PM, Steven Taylor wrote:
> Hi,
>
> just looking for a definition of this quoted variable assignment behaviour
> that I leaned about on this forum. What's it called in J parlance?
>
> 'a b c' =. 1;2;3
>
> 'a2 b2 c2' =. 1 2 3
>
> Also, it looks like we get an unbox for free
>
> (a2=a),(b2=b),(c2=c)
> 1 1 1
>
> thanks,
> -Steven
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list