Created
November 23, 2010 16:39
-
-
Save ray1729/712054 to your computer and use it in GitHub Desktop.
Pair up names for Secret Santa
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
(defn secret-santa | |
[names] | |
(let [s (shuffle names)] | |
(partition 2 1 (cons (last s) s)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment