Range using a class
- Range
r = Range.new(1, 3, exclusive: true)
r.each { |this|
puts this
}
r = Range.new(1, 3)
r.each { |this|
puts this
}
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
r = Range.new(1, 3, exclusive: true)
r.each { |this|
puts this
}
r = Range.new(1, 3)
r.each { |this|
puts this
}