pike.hubbe.net

[Top]
Array
previousArray.diff() Array.diff_dyn_longest_sequence()next

Method Array.diff_compare_table()


Method diff_compare_table

array(array(int)) Array.diff_compare_table(array a, array b)

Description

Returns an array which maps from index in a to corresponding indices in b.

 > Array.diff_compare_table( ({ "a","b","c" }), ({ "b", "b", "c", "d", "b" }));
 Result: ({
             ({ }),
             ({
                 0,
                 1,
                 4
             }),
             ({
                 2
 	        })
         })
 

See also

Array.diff, Array.diff_longest_sequence, String.fuzzymatch


Extracted from Pike v7.3 release 11 at 2001-11-03.