I am a newibe from python to ruby.
In python there is a feature like the following:
a=range(3)
b=range(3)
for e1,e2 in zip(a,b)
print e1,e2
Is there something that can achieve the same function in ruby?
I am a newibe from python to ruby.
In python there is a feature like the following:
a=range(3)
b=range(3)
for e1,e2 in zip(a,b)
print e1,e2
Is there something that can achieve the same function in ruby?