x.each_with_index { |v, i| puts "current index...#{i}" }

X.each_with_index do |item, index|
puts "current_index: #{index}"
end