-
-
Save tomjack/74eb36db2e78d49291a9 to your computer and use it in GitHub Desktop.
This file contains 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
(apply str (loop [x "apple" | |
y "orange" | |
r []] | |
(if (seq x) | |
(if (seq y) | |
(if (< (rand) 0.5) | |
(recur (next x) y (conj r (first x))) | |
(recur x (next y) (conj r (first y)))) | |
(into r x)) | |
(into r y)))) | |
;; "aoprpleange" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment