2012-08-30 85 views

回答

0
f1 = [1,2,3] 
f2 = [1,2,4] 
z = [f1,f2].transpose 

if(((z[0...(z.size-1)].collect {|el| el[0] == el[1]}.uniq == [true])) & (z[z.size-1][0] < z[z.size-1][1])) do 

# f1 = f2 , except the last element, where the last f1 element is smaller than the last f2 element 

end 
相關問題