Arrays can be compared with the same operators used for comparing scalar variables; when two arrays are compared, Cows perform the comparison on each element (the first element of the first array is compared with the first element of the second array and so on).
As an example, when evaluating
{ "foo", "bar" } == { "foo", "bar" }
Cows evaluates "foo" == "foo" and "bar" == "bar"; since they are both true, the whole comparison is true.
Arrays of different lengths are different.
The following comparison operators can be applied to arrays:
Both expressions are evaluated and reduced to arrays; returns true if arrays have the same length AND all their elements, compared in order, satisfy the condition array_expr_1 [i] == array_expr_2 [i]
Both expressions are evaluated and reduced to arrays; returns true if arrays have different length OR at least one of their elements, compared in order, satisfy the condition array_expr_1 [i] != array_expr_2 [i]
Both expressions are evaluated and reduced to arrays; returns true if arrays have the same length AND all their elements, compared in order, satisfy the condition array_expr_1 [i] ~== array_expr_2 [i]
Both expressions are evaluated and reduced to arrays; returns true if arrays have different length OR at least one of their elements, compared in order, satisfy the condition array_expr_1 [i] ~!= array_expr_2 [i]
This manual can be downloaded from http://www.g-cows.org/.