-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
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
On June 28, 2014, at 12:43AM, Roman Klochkov wrote:
Racket Users list:
http://lists.racket-lang.org/users
On June 28, 2014, at 12:43AM, Roman Klochkov wrote:
Racket Users list:
http://lists.racket-lang.org/users
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
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
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
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
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
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
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
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
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.
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
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)";
?
>>
>> 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
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
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) '())
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
19 matches
Mail list logo