Re: InputRange in arrays

2023-03-30 Thread Salih Dincer via Digitalmars-d-learn
On Friday, 31 March 2023 at 04:15:24 UTC, Salih Dincer wrote: ...has it always been possible for arrays to be used as if they were ranges? Playground is a very useful tool, it responds right away :) Up to 2.078.3: Failure with output: - onlineapp.d(4): Error: no property 'popFront'

Re: InputRange in arrays

2023-03-30 Thread Salih Dincer via Digitalmars-d-learn
On Friday, 31 March 2023 at 03:39:51 UTC, Salih Dincer wrote: May be somewhere D compiler between v2.087 and v2.096 (works) but definitely not before v2.087 (including)... Edit: The Phobos library I'm using is corrupted. That's why the last line was giving an error. But has it always been poss

InputRange in arrays

2023-03-30 Thread Salih Dincer via Digitalmars-d-learn
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]