diff

Iterates two slices and diffs them.

diff
(
R
)
if (
isForwardRange!R &&
hasSlicing!R
&&
is(typeof(R.init.front == R.init.front))
&&
is(typeof(R.init.front < R.init.front))
)

Parameters

a
Type: R

a forward sliceable range

b
Type: R

a forward sliceable range

equalSpan
Type: EqualSpan

an EqualSpan Elements from a and b must be comparable for equality. If equalSpan is Drop (the default), then only Diff structs with Insert, Delete, or Replace tags will be returned; otherwise Diff structs covering all the input will be returned, so will additionally include Diff structs with Equal tags.

Return Value

Type: auto

A slice of Diff structs.

Meta