2009/3/24 Joshua Fox <joshuat...@gmail.com>: >> Why "presumably with side effects?" > Otherwise you would use repeat. A pure function returns the same value > every time, so there is no reason to call it repeatedly.
Yup, that makes sense. Random numbers are side-effecting (is that the right term?) and I was trying to think about the (simple) problem in a pure functional way which was getting my simple brain all confused! Thanks to both of you for helping me see sense! Cheers, Paul. -- Iode Software Ltd, registered in England No. 6299803. Registered Office Address: 12 Sancroft Drive, Houghton-le-Spring, Tyne & Wear, DH5 8NE. This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed. It may contain information which is privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication may not necessarily be the views held by The Company. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---