Created
November 9, 2012 18:39
-
-
Save jbrechtel/4047423 to your computer and use it in GitHub Desktop.
Ugh
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 breed [parent-a parent-b] | |
| (let [breed-index (rand (count parent-a)) | |
| transmission-a (take breed-index parent-a) | |
| transmission-b (drop breed-index parent-b) | |
| pure-child (concat transmission-a transmission-b)] | |
| mutate-agent pure-child)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment