0
Array unification
code-golf array-manipulation
Introduction
Consider two arrays of the same length, say A = [0,1,0,2] and B = [-1,1,2,2].
Suppose we know that their contents are equivalent in some sense, item by item:
0 is equivalent to -1,
1 is equivalent to 1,
0 is equivalent to 2, and
2...