2017-09-06 10:35 GMT+02:00 Mark Engelberg <mark.engelb...@gmail.com>:
> You could do that by calling vec on it. But you'd want to move the whole > let clause outside of the defn, so it is only evaluated once, not every > time the function is called. > Wen the function is finished. ;-) > But best, as I said earlier, is just to let chars be "0123456789ABCDEF". > You can call nth on strings, so this is the most efficient way to do a > fixed sequence of specific characters. > The reason I use range is that in the future I am going to use long ranges and I think then a range is better as a long string. But that is something to think about. On Wed, Sep 6, 2017 at 1:13 AM, Cecil Westerhof <cldwester...@gmail.com> > wrote: > >> Answering my own question. ;-) >> >> 2017-09-06 9:58 GMT+02:00 Cecil Westerhof <cldwester...@gmail.com>: >> >>> The next step is that I want to use hexadecimal numbers. So I should use >>> (range (int \0) (inc (int \9))) combined with (range (int \A) (inc (int >>> \F))). >>> How would I do that? >>> >> >> (concat (range (int \0) (inc (int \9))) (range (int \A) (inc (int >> \F)))) >> >> >> By the way. I am using a lazy sequence here. Could it be updated with >> using a vector when creating very long strings, or is that not a >> significant performance increase? >> > -- Cecil Westerhof -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.