It looks like you're doing this:
b compress a
11 13 15 17 19
b#a
11 13 15 17 19
On Sun, Aug 7, 2011 at 11:38 PM, nykkyo Kane <[email protected]> wrote:
> Thanks again, I got it working.
>
>
>
> From: nykkyo Kane <[email protected]>
> To: Programming forum <[email protected]>
> Sent: Sunday, August 7, 2011 8:23 PM
> Subject: Re: [Jprogramming] value error
>
> Thanks
>
>
> From: Dan Bron <[email protected]>
> To: J Programming <[email protected]>
> Sent: Sunday, August 7, 2011 8:06 PM
> Subject: Re: [Jprogramming] value error
>
> Just a typo. You need an assingment like this
>
> compress =: 4 : 0
> ....
> )
>
>
> Please excuse typos; composed on a handheld device.
>
> -----Original Message-----
> From: nykkyo Kane <[email protected]>
> Sender: [email protected]
> Date: Sun, 7 Aug 2011 19:56:33
> To: [email protected]<[email protected]>
> Reply-To: Programming forum <[email protected]>
> Subject: [Jprogramming] value error
>
> 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
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> 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