Adjacent Pairs Range
"Nordlöw" via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 12 03:17:17 PDT 2015
How do I most elegantly iterate all the adjacent pairs in an
`InputRange` using Phobos?
Something like
[1,2,3,4] => [(1,2), (2,3), (3,4)]
More information about the Digitalmars-d-learn
mailing list