let array_iter2 f x y = let c = min (Array.length x) (Array.length y) in for i = 0 to c - 1 do f x.(i) y.(i) done