On Monday, 17 January 2022 at 01:06:05 UTC, Salih Dincer wrote:
```d
  // Taaata, magic...
  // Your eyes don't surprise you!
  typeid(range).writeln(": ", range);
  typeid(slices).writeln(": ", slices);
```

In fact, although range and slice seem to be equal to each other, they are not! Slice points directly to the array source, but range is not...

Because range never has slices showing the array source. But it has criteria that make it effective. and when called, it processes those criteria (uses CPU power) and does the same thing each time.

Range does the same thing every time, lazily. Maybe it's not lazy, because range is operated when necessary and always obeys. Ranges obey even if they are lazy.

😀

Good weeks

Reply via email to