Q:

Am I misunderstanding 'min'?

I have:
array1 = [[0, 0], [2, 1]]
array2 = [[1, 0], [3, 1]]

I believe this should be the case:
array1[1][0] == [0, 2]
array2[1][0] == [0, 3]

Following this, why is it that the following code,
[array1[1][0], array2[1][0]].min # => 2

returns 2?
How is it that 2 is the minimum out of two-dimensional arrays in which there are three instances of 0 and three instances of 1?
Am I misunderstanding the min function, or am I misunderstanding what is going on when I use the two-dimensional arrays?

A:

When [1][0] call for the first array you take the second array from it [2, 1] and then take the first number from taken array 2.
array1[1][0] => 2
array2[1][0] => 3
[2, 3].min => 2

