Hi, On Jun 22, 7:47 am, David Nolen <dnolen.li...@gmail.com> wrote:
> Clearly a range' is in order. Eh? Why? The following is probably completely hypothetical syntax, because I'm not familiar with the changes in the numeric branches. But I think, it's easy to get my point. (defn range ([^long lower ^long upper] work with ints here) ([lower upper] work with boxed numbers here)) As long as the limits fit into a long, no overflow can happen. So we can safely do fast primitive math inside. As soon as one of the limits is a boxed number we do the usual stuff. So one can use range transparently and still get fast results if provided with primitive input. Sincerely Meikel -- 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