How may i fetch next and before current element from array while iterating array with each.
array.each do |a|
# I want to fetch next and before current element.
end
How may i fetch next and before current element from array while iterating array with each.
array.each do |a|
# I want to fetch next and before current element.
end