Adjacent Pairs Range
Per Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Sep 14 03:45:45 PDT 2015
On Monday, 14 September 2015 at 05:37:05 UTC, Sebastiaan Koppe
wrote:
> What about using zip and a slice?
Slicing requires a RandomAccessRange (Array). This is too
restrictive. We want to change operations such as adjacentTuples
with for example map and reduce without the need for temporary
copies of the whole range. This is the thing about D's standard
library.
Read up on D's range concepts.
More information about the Digitalmars-d-learn
mailing list