Re: [racket] please help to change vector to list

2011-06-03 Thread Danny Yoo
On Fri, Jun 3, 2011 at 1:51 PM, Yingjian Ma wrote: > Thank you Danny.  I used to program in Visual Basic and then Java with > related stuff, such as HTML, Javascripts.  I learned C and Pascal in > school.  Racket is quite different.  It seems I need to use recursion much > more. Cool. You can p

Re: [racket] please help to change vector to list

2011-06-03 Thread Yingjian Ma
Thank you Danny. I used to program in Visual Basic and then Java with related stuff, such as HTML, Javascripts. I learned C and Pascal in school. Racket is quite different. It seems I need to use recursion much more. On Thu, Jun 2, 2011 at 11:56 AM, Danny Yoo wrote: > On Thu, Jun 2, 2011 at

Re: [racket] please help to change vector to list

2011-06-02 Thread Danny Yoo
On Thu, Jun 2, 2011 at 1:00 PM, Yingjian Ma wrote: > Thank you Stephen.  The code does not work in general.  I know how to do it > now. It sounds like you're beginning to learn Racket, which is cool. You may find the the Quick Start documentation at: http://docs.racket-lang.org/quick/index.

Re: [racket] please help to change vector to list

2011-06-02 Thread Yingjian Ma
Thank you Stephen. The code does not work in general. I know how to do it now. On Thu, Jun 2, 2011 at 7:45 AM, Stephen Bloch wrote: > > On Jun 2, 2011, at 9:11 AM, Yingjian Ma wrote: > > > Here is another question. In (lambda (ls), it seems ls took the value > from v. How does Racket know no

Re: [racket] please help to change vector to list

2011-06-02 Thread Stephen Bloch
On Jun 2, 2011, at 9:11 AM, Yingjian Ma wrote: > Here is another question. In (lambda (ls), it seems ls took the value from > v. How does Racket know not pass x to ls as the argument? "helper" is defined as "(lambda (ls) ...)" The only place you call "helper", you give it "(vector->list v)";

Re: [racket] please help to change vector to list

2011-06-02 Thread Yingjian Ma
Hi All, I know now that helper v passes v into 2nd lambda. On Thu, Jun 2, 2011 at 6:11 AM, Yingjian Ma wrote: > Hi Jos and ALL, > > The code is from website > > http://stackoverflow.com/questions/4175626/scheme-recursion-error > > I modified it. It is not about homework. I am learning and eva

Re: [racket] please help to change vector to list

2011-06-02 Thread Yingjian Ma
Hi Jos and ALL, The code is from website http://stackoverflow.com/questions/4175626/scheme-recursion-error I modified it. It is not about homework. I am learning and evaluating Racket. I use Language: racket; memory limit: 128 MB in DrRacket. The error I get is > (test 'a '(b a c a)) . . pr

Re: [racket] please help to change vector to list

2011-06-02 Thread Jos Koot
Whast you describe seems correct. How about showing me yoyur code after deleting vector->list? If this is HOMEWORK, send it OFF LIST. What language did you use? Jos _ From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of Yingjian Ma Sent: 02 June 2