On Oct 28, 1:34 pm, John Harrop <jharrop...@gmail.com> wrote: > This runs into problems with things like (repeatedly rand) though.
How so? The repeatedly function returns a lazy sequence that (presumably) stores a reference to repeatedly as its generator function. That instance of repeatedly would, in turn, have to store a reference to the rand function in order to call it as necessary. So when the resulting lazy sequence has its hash code requested, it could return a value similar to the following: (+ (.hashCode rand) (* 37 (.hashCode repeatedly))) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---