Skip to content

Instantly share code, notes, and snippets.

@kpmaynard
Created January 25, 2014 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kpmaynard/8611605 to your computer and use it in GitHub Desktop.
Save kpmaynard/8611605 to your computer and use it in GitHub Desktop.
I can't figure out what I'm doing wrong here. (compute-winnings-for-a-trial ) returns a number, I am using conj to collect the outcomes of each trial for later analysis. I am not receiving any output whatever.
(defn multiple-trials [m n]
( loop [m m n n acc []]
(if (> m 0)
(conj acc (compute-winnings-for-a-trial n))
acc)
(recur (dec m) n acc)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment