[Jprogramming] 'a b c' =. 1;2;3 unboxes?

Don Guinn donguinn at gmail.com
Sat Jun 2 20:57:53 HKT 2012


"names" is a verb defined in the z locale unless you gave it a value. So
you should get a syntax error for (names)=.1 2 .

Gerunds are kind of weird as they are really nouns.
   (;:'+-')-:+`-
1

Never thought about trying to use a variable on the left of the gerund
assignment. Took a while to figure out how to do it.
   n=.'plus minus'
   erase 'plus minus'
1 1
   n
plus minus
   ('`',n)=.+`-
   3 plus 4
7



On Sat, Jun 2, 2012 at 2:26 AM, Steven Taylor <taylste at gmail.com> wrote:

>   '`plus minus' =. +`-
>
> on the r.h.s backtick means gerund.  On the l.h.s, backtick looks to be
> optional.
>  (names) =. 1 2
> Doesn't seem to be doing anything?
>
> -Steven
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


More information about the Programming mailing list