> 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)))
I think John's point is this: user=> (take 3 (repeatedly rand)) (0.07020342855887218 0.590736243072285 0.04997104958104426) user=> (take 3 (repeatedly rand)) (0.6445602419794128 0.12488917903865004 0.5784287452848529) Different sequences, even if the generators are the same. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---