# Range
{id: range}


## Range using dots
{id: range-with-dots}
{i: ..}
{i: ...}

![](examples/range/exclusive_dots.cr)
![](examples/range/inclusive_dots.cr)


## Range using a class
{id: range-with-class}
{i: Range}

![](examples/range/class_exclusive.cr)
![](examples/range/class_inclusive.cr)

## Range - sum
{id: range-sum}

* An example using a range and sum together in a one-line statement.

![](examples/range/range_sum.cr)

## Range - count
{id: range-count}


![](examples/range/count.cr)

## Range and loop controls
{id: range-loop-controls}
{i: next}
{i: break}
{i: continue}

![](examples/range/loop_controls.cr)
![](examples/range/loop_controls.out)

## Range with step
{id: range-with-step}
{i: step}

![](examples/range/step.cr)
![](examples/range/step.out)

## Range to Array
{id: range-to-array}
{i: to_a}

![](examples/range/to_a.cr)
![](examples/range/to_a.out)

