Extracted from Pike v7.3 release 18 at 2002-03-27.
pike.roxen.com
[Top]
Array

Method Array.diff_dyn_longest_sequence()


Method diff_dyn_longest_sequence

array(int) Array.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 Array.diff_longest_sequence, but uses a different algorithm, which in some rare cases might be faster (usually it's slower though).

See also

Array.diff_longest_sequence, Array.diff, Array.diff_compare_table, String.fuzzymatch