Phobos Ranges
You will be acquainted with the Phobos range in this lesson.
We'll cover the following...
Introduction
The ranges in this chapter are different from number ranges that are written in the form begin…end. We have discussed how number ranges are used with the foreach
loop and with slices:
foreach (value; 3..7) { // number range,
// NOT a Phobos range
int[] slice = array[5..10]; // number range,
// NOT a Phobos range
When we write a range in this chapter, we mean a Phobos range.
Ranges form a range hierarchy. At the ...