Skip to main content

myers_diff

Function myers_diff 

Source
pub fn myers_diff<'a>(old: &'a [&str], new: &'a [&str]) -> Vec<DiffOp<'a>>
Expand description

Myers diff algorithm — computes the shortest edit script between two sequences

Returns a list of edit operations (keep, insert, delete) that transform old into new.