Skip to content

Instantly share code, notes, and snippets.

@stevez
Created May 3, 2015 03:21
Show Gist options
  • Save stevez/c7e5a68c88f9aaced871 to your computer and use it in GitHub Desktop.
Save stevez/c7e5a68c88f9aaced871 to your computer and use it in GitHub Desktop.
letters = ['a', 'b', 'c']
numbers = [1, 2, 3]
combos = [letters, numbers].combinations()
//[[a, 1], [b, 1], [c, 1], [a, 2], [b, 2], [c, 2], [a, 3], [b, 3], [c, 3]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment