As Dan implies, this is probably equivalent: aa=: 1 : '+[:x 0:=]' -. aa 1 0 2 0 0 3 NB. Adds 1 to all non-zeros 2 0 3 0 0 4 - aa 1 0 2 0 0 3 0 0 44 0 55 66 NB. either (0-1) or (n-0) 1 _1 2 _1 _1 3 _1 _1 44 _1 55 66
For what is this useful? No idea. Here's where the least little comment, example, or well-chosen name would be most helpful. On 2/6/08, Sherlock, Ric <[EMAIL PROTECTED]> wrote: > > I was trying to run the Set Game GUI script posted to comp.lang.apl by > Kirk Iverson in 1996. One of lines I needed to change was: > 11 : '+ [: x 0: = ]' > 11 is no longer a valid right argument to : (Explicit), what did it mean > back then? > > (I've put a version of the script on the wiki that runs in J6.02.) > http://www.jsoftware.com/jwiki/Scripts/Set_Game > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
