Ah. A sneaky difference between repeat and repeatedly there then :). Good to remember!
On Jul 28, 9:35 am, Laurent PETIT <[email protected]> wrote: > Hi, > > You could do: > > (repeatedly 100 #(rand-int 10)) > > HTH, > > -- > Laurent > > 2010/7/28 bOR_ <[email protected]> > > > > > Hi all, > > > I have the nagging feeling that I'm missing a simple solution. Say I > > want a list of a 100 rand-int 10 numbers. Currently, I create that by > > doing (map (fn [_] (rand-int 10)) (range 100)). Is there an easier > > way? > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to [email protected] > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > [email protected]<clojure%[email protected] > > > > > 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 post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
