SlideIterator is used by diff and slide.
import mir.functional: naryFun; auto data = [1, 3, 8, 18]; auto diff = SlideIterator!(int*, 2, naryFun!"b - a")(data.ptr); assert(*diff == 2); assert(diff[1] == 5); assert(diff[2] == 10);
See Implementation
SlideIterator is used by diff and slide.