>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes:

H> Ruby already has mutiple assignment.  Would it be possible to extend
H> for to allow multiple things to be selected at once?

 Something like this ?


pigeon% cat b.rb
#!/usr/bin/ruby
a = [[1, 2], [3, 4]]
for p1, p2 in a
   p "#{p1}, #{p2}"
end
pigeon% b.rb
"1, 2"
"3, 4"
pigeon% 


Guy Decoux