Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created August 7, 2018 17:17
Show Gist options
  • Save recursivecodes/1407a7bfde3889011c8d719a8891ecf5 to your computer and use it in GitHub Desktop.
Save recursivecodes/1407a7bfde3889011c8d719a8891ecf5 to your computer and use it in GitHub Desktop.
[cards, suits].combinations().each {
deck << it.join()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment