[Cs254f11] Repeat a function call

Jack Laxson jrl11 at hampshire.edu
Tue Oct 4 23:13:23 EDT 2011


Lee: what was the repeated function call you told us to use earlier today?
I've managed to hit that same problem.

(def initial (repeat 5 (rand-int 20))). Which repeats the random int that it
gets. I checked the cheatsheet (http://clojure.org/cheatsheet) for the
others but I think there was a way better way to form it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.hampshire.edu/mailman/private/cs254f11/attachments/20111004/73aaa729/attachment.htm>


More information about the Cs254f11 mailing list