Re: [racket] Please help with syntax

2014-06-28 Thread Roman Klochkov
Thank you! Sat, 28 Jun 2014 09:41:38 +0200 от "Jos Koot" : >#lang racket >  >(define-syntax (set!-values* stx) > (syntax-case stx () >  ((_ (var ...) values-expr) >   (with-syntax (((local-var ...) (generate-temporaries #'(var ... >  #'(let-values (((local-var ...) values-expr)) > (set!*

Re: [racket] Please help with syntax

2014-06-28 Thread Jos Koot
#lang racket (define-syntax (set!-values* stx) (syntax-case stx () ((_ (var ...) values-expr) (with-syntax (((local-var ...) (generate-temporaries #'(var ... #'(let-values (((local-var ...) values-expr)) (set!* var local-var) ...) (define-syntax (set!* stx) (syntax-case st

Re: [racket] Please help with syntax

2014-06-28 Thread Jon Stenerson
On June 28, 2014, at 12:43AM, Roman Klochkov wrote: Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Please help with syntax

2014-06-28 Thread Jon Stenerson
On June 28, 2014, at 12:43AM, Roman Klochkov wrote: Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Please help

2013-06-28 Thread Robby Findler
I think I understand what happened here: you have used an earlier version of DrRacket where the teachpacks had slightly different names than they do now and the old preferences confused DrRacket to the point that you have to remove the old teachpack before it will run programs. I have changed DrRa

Re: [racket] Please help

2013-06-21 Thread Jens Axel Søgaard
Hi Saad, 2013/6/21 Saad Bashir : > I have downloaded the Racket v 5.3.5 (June 2013). > teachpack: the teachpack 'image.ss' was not found This may or may not work - but it is worth a shot. In the menu "Language" menu choose the menu item that removes all the teach packs. Now click the run butto

Re: [racket] Please help

2013-06-21 Thread Matthias Felleisen
Thanks, Keep posting -- Matthias On Jun 21, 2013, at 2:34 PM, Saad Bashir wrote: > Thank you for the solution. The problem is away. > > This user group is great and your personal support to every one is > tremendous. > > No better way to learn to program - I can say this after trawling

Re: [racket] Please help

2013-06-21 Thread Matthias Felleisen
Language -> Clear All Teachpacks Language -> Add Teachpack see two columns choose image from 2e column only That's it. Thanks for the report; the error message should definitely be more informative -- Matthias On Jun 21, 2013, at 2:27 PM, Saad Bashir wrote: > I have downloaded the

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