#<Proc:0x007fa918b3c7c0@(irb):1> >> f['hello'] hello => nil Arguments that were not provided are initialised as nil (not the case for a lambda) Calling a Proc
#<Proc:0x007fa918b3c7c0@(irb):1> >> f['hello'] hello => nil Arguments that were not provided are initialised as nil (not the case for a lambda) Calling a Proc
input_as_string.to_i system "clear" if input_as_int > 0 todo_list.delete_at(input_as_int - 1) else todo_list << input_as_string end todo_list.each_with_index do |item, index| puts "#{index+1}: #{item}" end end