Re: [racket] Please help with syntax

2014-06-28 Thread Roman Klochkov
-values (a b c) (values 1 2 3)) >(set!-values* (_ _ c) (values 4 5 6)) >(list a b c) > >Jos > > > > >From: users [mailto:users-boun...@racket-lang.org] On Behalf Of >Roman Klochkov >Sent: sábado, 28 de junio de 2014 8:43 >To: Rack

Re: [racket] Please help with syntax

2014-06-28 Thread Jos Koot
s [mailto:users-boun...@racket-lang.org] On Behalf Of Roman Klochkov Sent: sábado, 28 de junio de 2014 8:43 To: Racket Users List Subject: [racket] Please help with syntax I need to define syntax set!-values*, that will ignore _ in value p

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

[racket] Please help with syntax

2014-06-27 Thread Roman Klochkov
I need to define syntax set!-values*, that will ignore _ in value place. Such as (define a #f) (set!-values* (_ _ a) (values 1 2 3)) ; should set a to 3. But I have two problems: 1. _ don't want to pattern match in syntax case. If I make it literal, I can't match "anything else". 2. How to omit

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

[racket] Please help

2013-06-21 Thread Saad Bashir
I have downloaded the Racket v 5.3.5 (June 2013). However when I open it to program (I am a beginner and using BSL to study HtDP). the following message is seen in the operation area in red as pasted below . Welcome to DrRacket, version 5.3.4 [3m]. Language: Beginning Student [custom]; memory li

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
? >> >> Jos >> >> ---------- >> *From:* users-boun...@racket-lang.org [mailto: >> users-boun...@racket-lang.org] *On Behalf Of *Yingjian Ma >> *Sent:* 02 June 2011 08:45 >> *To:* users@racket-lang.org >> *Subject:* [rac

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

2011-06-02 Thread Yingjian Ma
gt; > -- > *From:* users-boun...@racket-lang.org [mailto: > users-boun...@racket-lang.org] *On Behalf Of *Yingjian Ma > *Sent:* 02 June 2011 08:45 > *To:* users@racket-lang.org > *Subject:* [racket] please help to change vector to list > > Hi

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

2011-06-02 Thread Jos Koot
une 2011 08:45 To: users@racket-lang.org Subject: [racket] please help to change vector to list Hi ALL, I have this code (define test (lambda (x v) (define helper (lambda (ls) (cond ((empty? ls) '())

[racket] please help to change vector to list

2011-06-01 Thread Yingjian Ma
Hi ALL, I have this code (define test (lambda (x v) (define helper (lambda (ls) (cond ((empty? ls) '()) ((empty? (rest ls)) '()) ((equal? (second ls) x) (cons (first ls) (helper (rest ls (else (helper (rest ls)) (helper (vecto