Range with step
- step
(1..10).step(3) { |ix|
puts ix
}
1
4
7
10
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
(1..10).step(3) { |ix|
puts ix
}
1
4
7
10