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
wrote:
> 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:
https://github.com/nordlow/justd/blob/master/range_ex.d#L702
Note: No yet extended to N > 2.
An alternative naming would be overlappingTuples/Pairs.
More information about the Digitalmars-d-learn
mailing list