4.1.10. GNATCOLL.Damerau_Levenshtein_Generic
generic
type Element_Type is private;
type Index_Type is range <>;
type Array_Type is array (Index_Type range <>) of Element_Type;
function GNATCOLL.Damerau_Levenshtein_Generic
(Left, Right : Array_Type) return Natural;
-- Damerau Levenshtein distance between Left and Right arrays.
-- Calculated in minimum number of elementary operations to convert one
-- array to another. The operations are deletion, insertion, substitution,
-- and transposition (swap 2 adjacent elements).