Skip to content

Instantly share code, notes, and snippets.

@nuke99
Created April 3, 2012 13:05
Show Gist options
  • Save nuke99/74da77c87b767d35ac5a to your computer and use it in GitHub Desktop.
Save nuke99/74da77c87b767d35ac5a to your computer and use it in GitHub Desktop.
NAME = ['john','max','peter','selena']
GENDER = ['male','male','male','female']
DATE = ['11/02/2011','11/02/2011','11/02/2011','11/02/2011']
#output I want -------------
#names = [
# ["john","male","11/02/2011"],
# ["max","male","11/02/2011"],
# ["peter","male","11/02/2011"],
# ["selena","female","11/02/2011"]
# ]
names = []
count = 0
while count < Name.length
name << [NAME[count],GENDER[count],DATE[count]]
count +=1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment