On Wednesday, 21 March 2018 at 08:40:25 UTC, Kagamin wrote:
On Wednesday, 21 March 2018 at 07:40:01 UTC, Dukc wrote:
...except that IEnumerables cannot popBack(), so can only do that by doing an additional copy and reversing that. But I quess there's no better alternative, short of doing it C-style...

A random access range would be represented as IList<T>, backward iteration can be just a part of chunking.

So the real difference is that random-accesss ranges are not input-ranges in C# (or Rust, judging by a quick look I recently took) but can be used to fetch one. A bit cumbersome perhaps, but logical. I think I understand it now. Thank you.

Reply via email to