Have two arrays of Doubles, I want to compare them and create a new array with result of the difference, but not sure how to create a loop for that. Please advise.
Example of the arrays here:
var freshRates = [1.6,1.7,2.0]
var oldRates = [1.5,1.4,1.9]
var difference: [Double] = []