Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Manually separate

def f(x, y)
  return x + y
end

puts f(2, 3)
values = [3, 4]
puts values

puts f(values[0], values[1])