Skip to content

Instantly share code, notes, and snippets.

@jessepollak
Created November 25, 2013 15:48
Show Gist options
  • Save jessepollak/7643412 to your computer and use it in GitHub Desktop.
Save jessepollak/7643412 to your computer and use it in GitHub Desktop.
array_1 = [1, 2, 3, 4]
array_2 = [1, 2, 3]
zip(array_1, array_2)
# => [(1, 1), (2, 2), (3, 3)]
zip(array_1, array_2)
# => [(1, 1), (2, 2), (3, 3)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment