1
2
3
4
5
6
7
8
9
['hello', 'world'].each_with_index do |item, index|
  if index == 0
    puts "This is the first item: #{item}"
  else
    puts item
  end
end
# >> This is the first item: hello
# >> world