InputRange in arrays

Salih Dincer salihdb at hotmail.com
Fri Mar 31 03:39:51 UTC 2023


Hi, there is a feature when working with the InputRange. I don't 
know when it released available. May be somewhere D compiler 
between v2.087 and v2.096 (works) but definitely not before 
v2.087 (including)...

Anyone know this?

```d
import std.range.primitives;
void main()
{
   auto arr = [0, 1];
   arr.popFront;

   assert(arr.front == 1);
   assert(isInputRange!(typeof(arr)));
}
```

SDB at 79


More information about the Digitalmars-d-learn mailing list