Dist is the Levenshtein distance and is guaranteed to be 0 if and only if lists X and Y are equal.
()
| 80 | // Dist is the Levenshtein distance and is guaranteed to be 0 if and only if |
| 81 | // lists X and Y are equal. |
| 82 | func (es EditScript) Dist() int { return len(es) - es.stats().NI } |
| 83 | |
| 84 | // LenX is the length of the X list. |
| 85 | func (es EditScript) LenX() int { return len(es) - es.stats().NY } |