Adjacent Pairs Range
"Nordlöw" via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 12 04:46:53 PDT 2015
On Saturday, 12 September 2015 at 11:34:03 UTC, Bahman Movaqar
> On 09/12/2015 03:09 PM, "Nordlöw" wrote:
>> InputRange please, not RandomAccessRanges ;)
> Oops! Here's one using only `InputRange` interface:
I wrote my own as adjacentTuples and adjacentPairs:
Note: No yet extended to N > 2.
An alternative naming would be overlappingTuples/Pairs.
More information about the Digitalmars-d-learn