Where is "return" defined? Try just "t" instead of "return t".
On Sun, Aug 7, 2011 at 10:56 PM, nykkyo Kane <[email protected]> wrote: > Following is a creenshot of my "J" console. I do not understand why I am > getting a error> > ================= > compress 4 : 0 > i =. 0 > t =. 0$0 > while. i < $x do. > if. 1 = i{x do. t =. t , i{y end. > i =. >:i > end. > return t > ) > > compress 4 : 0 > i =. 0 > t =. 0$0 > while. i < $x do. > if. 1 = i{x do. t =. t , i{y end. > i =. >:i > end. > return t > ) > b compress a > |value error: compress > | b compress a > a > 11 12 13 14 15 16 17 18 19 20 > b > 1 0 1 0 1 0 1 0 1 0 > ---------------------------------------------------------------------- > 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
