Apply a predicate over each consecutive pair.
t { import std.algorithm.comparison : equal; assert(equal(pairwise!"a+b"([1, 2, 3]), [3, 5])); assert(equal(pairwise!"b-a"([1, 2, 3]), [1, 1])
See Implementation
Apply a predicate over each consecutive pair.