Automatic counter in Ruby for each? I want to find out the current index while i am in the each loop. how do i do so? X=[1,2,3] X.each do |p| puts "current ...
確定! 回上一頁