On creating an infinite range, I think it'd be wonderful if Double/ POSITIVE_INFINITY or something like it would be bound to a core symbol, such as infinity or something. That'd way, one would be able to do things like (range 3 infinity) or (> infinity 5).
CuppoJava, how long ago did those discussions that you're talking about occur? On Jun 23, 2:15 pm, "Stephen C. Gilardi" <squee...@mac.com> wrote: > On Jun 23, 2009, at 2:07 PM, Chouser wrote: > > > > > On Tue, Jun 23, 2009 at 1:09 PM, > > CuppoJava<patrickli_2...@hotmail.com> wrote: > > >> (iterate inc 0) > > > Just riffing here, but what if range took some kind of > > sentinel to indicate an infinite range? So instead of > > (iterate inc 0), you could say (range 0 :forever). Then > > that would also allow: > > > (range 0 :forever 2) ; even numbers > > (range 1 :forever 2) ; odd numbers > > Along these lines, please see also: > > http://groups.google.com/group/clojure/browse_frm/thread/5e665ce7a318... > > --Steve > > smime.p7s > 3KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---