Skip to content

Commit bd3d7e6

Browse files
author
Alex Razoumov
committed
move first mention of arrays down the text
1 parent 23b7c07 commit bd3d7e6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

episodes/03-ranges-arrays.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ exercises: 30
1515
## Ranges and Arrays
1616

1717
A series of integers (1,2,3,4,5, for example), is called a **_range_**. Ranges are generated with the `..`
18-
operator, and are useful, among other things, to declare **_arrays_** of variables.
19-
20-
Let's examine what a range looks like (`ranges.chpl` in this example):
18+
operator. Let's examine what a range looks like (`ranges.chpl` in this example):
2119

2220
```chpl
2321
var example_range = 0..10;
@@ -33,10 +31,9 @@ chpl ranges.chpl
3331
Our example range was set to: 0..10
3432
```
3533

36-
An array is a multidimensional collection of values of the same type. Arrays can be any size, and are defined
37-
using ranges. Let's
38-
define a 1-dimensional array of the size `example_range` and see what it looks like. Notice how the size of an
39-
array is included with its type.
34+
Among other uses, ranges can be used to declare **_arrays_** of variables. An array is a multidimensional
35+
collection of values of the same type. Arrays can be of any size. Let's define a 1-dimensional array of the
36+
size `example_range` and see what it looks like. Notice how the size of an array is included with its type.
4037

4138
```chpl
4239
var example_range = 0..10;

0 commit comments

Comments
 (0)