- Range
Range using a class
examples/range/class_exclusive.cr
r = Range.new(1, 3, exclusive: true) r.each { |this| puts this }
examples/range/class_inclusive.cr
r = Range.new(1, 3) r.each { |this| puts this }
r = Range.new(1, 3, exclusive: true) r.each { |this| puts this }
r = Range.new(1, 3) r.each { |this| puts this }