[plt-scheme] lang for Project Euler?

From: e (eviertel at gmail.com)
Date: Sun Feb 22 09:23:41 EST 2009

ok, thanks.  range was easy to write.  I was just surprised it wasn't built
in like it is in python, ruby and clojure.  I see build-list is now and am
playing with it.

Thanks again.

On Sun, Feb 22, 2009 at 9:12 AM, Sam TH <samth at ccs.neu.edu> wrote:

> On Sun, Feb 22, 2009 at 7:38 AM, e <eviertel at gmail.com> wrote:
> > Hi, I was thinking of doing project euler (http://projecteuler.net) in
> plt
> > scheme. For the first problem, I wanted to use a typical "range" function
> > and noticed it isn't built in  (at least under that name).  What I'm
> > wondering is if there's some #lang I should probably be using to give me
> > many of the goodies I'd expect to have (not that it is hard to implement
> > range).  Again, I realize I'm still jumping in w/out doing much reading
> > first :).
>
> You should probably use `#lang scheme'.
>
> As for range, you should look either at `build-list', as Robby
> suggested, if you want a data structure, or at `in-range' if you want
> to loop over the numbers.
>
> --
> sam th
> samth at ccs.neu.edu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090222/06d4910b/attachment.html>

Posted on the users mailing list.