Created
January 25, 2014 03:55
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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