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

Repeat arrays

x = [1, 2] * 3
y = [0] * 10
p! x
p! y
x # => [1, 2, 1, 2, 1, 2]
y # => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]