Array.diff_compare_table()
 
   
[Top]
predef::
Array

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

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


Insert any HTML comment here. You can use any HTML tags and containers. Use <phl> ... </phl> if you'd like to insert some Pike / C examples or code.
 
HTML OK CSS