Created
August 6, 2013 22:23
-
-
Save aloewright/6169296 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| =begin | |
| Enacting Enumerables; Method: Zip | |
| Zip merges the elements by index from the passed arguments. | |
| If the size of the two arrays is unequal, nil is returned. | |
| =end | |
| a = ['sam', 'alex', 'nick'] | |
| b = ['ali', 'ian', 'alejandro'] | |
| p a.zip(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment