Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Array

Method Array.diff_dyn_longest_sequence()


Method diff_dyn_longest_sequence

array(int) diff_dyn_longest_sequence(array a, array b)

Description

Gives the longest sequence of indices in b that have corresponding values in the same order in a .

This function performs the same operation as diff_longest_sequence() , but uses a different algorithm, which in some rare cases might be faster (usually it's slower though).

See also

diff_longest_sequence() , diff() , diff_compare_table() , String.fuzzymatch()