Add arrays
x = [2, 3, 4]
y = [5, 6, 7]
p! x
p! y
z = x + y
p! z
x # => [2, 3, 4]
y # => [5, 6, 7]
z # => [2, 3, 4, 5, 6, 7]
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
x = [2, 3, 4]
y = [5, 6, 7]
p! x
p! y
z = x + y
p! z
x # => [2, 3, 4]
y # => [5, 6, 7]
z # => [2, 3, 4, 5, 6, 7]