[racket] Shurely Shome Mishtake

From: YC (yinso.chen at gmail.com)
Date: Sat Sep 4 16:49:12 EDT 2010

I don't know whether planet modules can be used within Pretty Big, but I
have a case/equal? and a case/string-ci=? defined in my bzlib/base module -
feel free to try it out or take a look at it (in base.ss).

> (require (planet bzlib/base))
> (case/equal? "abc"
               (("def" "ghi" "ijk") 1)
               (("abc") 2)
               (else 3))
2
> (case/string-ci=? "abc"
               (("def" "ghi" "ijk") 1)
               (("ABC") 2)
               (else 3))
2


On Sat, Sep 4, 2010 at 1:40 PM, wooks . <wookiz at hotmail.com> wrote:

>  One mans correct is another mans WAD (Works as Designed).
>
> > Subject: Re: [racket] Shurely Shome Mishtake
> > From: matthias at ccs.neu.edu
> > Date: Sat, 4 Sep 2010 16:29:59 -0400
> > CC: users at racket-lang.org
> > To: wookiz at hotmail.com
>
> >
> >
> > No this is correct:
> >
> > Welcome to DrRacket, version 5.0.1.5--2010-09-02(7fead28/g) [3m].
> > Language: Pretty Big; memory limit: 512 MB.
> > > (eqv? 8 8)
> > #t
> > > (eqv? "8" "8")
> > #f
> > >
> >
> > Plus read the docs on case.
> >
> >
> > On Sep 4, 2010, at 4:22 PM, wooks . wrote:
> >
> > > (case 8
> > > ((8 9 10) 'hello)
> > > (else 'goodbye)) -> hello
> > >
> > > (case "8"
> > > (("8" "9" "10") 'hello)
> > > (else 'goodbye)) -> goodbye
> > >
> > > I'm working in Pretty Big
> > >
> > > _________________________________________________
> > > For list-related administrative tasks:
> > > http://lists.racket-lang.org/listinfo/users
> >
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Cheers,
yc

Taming the software dragon - http://dragonmaestro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100904/881545a4/attachment.html>

Posted on the users mailing list.