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.<br><br>Thanks again.<br><br><div class="gmail_quote">
On Sun, Feb 22, 2009 at 9:12 AM, Sam TH <span dir="ltr"><<a href="mailto:samth@ccs.neu.edu">samth@ccs.neu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Sun, Feb 22, 2009 at 7:38 AM, e <<a href="mailto:eviertel@gmail.com">eviertel@gmail.com</a>> wrote:<br>
</div><div><div></div><div class="Wj3C7c">> Hi, I was thinking of doing project euler (<a href="http://projecteuler.net" target="_blank">http://projecteuler.net</a>) in plt<br>
> scheme. For the first problem, I wanted to use a typical "range" function<br>
> and noticed it isn't built in (at least under that name). What I'm<br>
> wondering is if there's some #lang I should probably be using to give me<br>
> many of the goodies I'd expect to have (not that it is hard to implement<br>
> range). Again, I realize I'm still jumping in w/out doing much reading<br>
> first :).<br>
<br>
</div></div>You should probably use `#lang scheme'.<br>
<br>
As for range, you should look either at `build-list', as Robby<br>
suggested, if you want a data structure, or at `in-range' if you want<br>
to loop over the numbers.<br>
<font color="#888888"><br>
--<br>
sam th<br>
<a href="mailto:samth@ccs.neu.edu">samth@ccs.neu.edu</a><br>
</font></blockquote></div><br>