Luis Munoz
08/27/2020, 11:20 PMfun totalDistance(aList: List<Location>) : Double{
var total: Double = 0.0
for(x in 1..aList.size-1) {
total += distance(aList[x], aList[x-1])
}
return total
}
araqnid
08/27/2020, 11:25 PMLuis Munoz
08/27/2020, 11:31 PMTwoClocks
08/28/2020, 7:00 AM