Hi, I'm new to Ruby, used Tcl previously. What is the Ruby
equivalent of:
1) iterating over multiple lists, eg:
foreach a {1 2 3} b {4 5 6} {
puts "$a $b"
}
1 4
2 5
3 6
2) iterating through a list "two at a time":
foreach {a b} {1 2 3 4 5 6} {
puts "$a $b"
}
1 2
3 4
5 6
Thanks in advance.
Ronnie N. Carpio
rncarpio / yahoo.com
Sent via Deja.com
http://www.deja.com/