VladDonchenko / RubyHW

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

task 6

xandrck opened this issue · comments

array.each_with_index do |add,index|

Почитай про атрибуты each_with_index https://apidock.com/ruby/Enumerator/each_with_index

array.each_with_index do |element, index| 
  array[index] == element (одно и тоже)