3 ms·
You're right, the process does start from the higher coefficients, and so does not really support the ordering presented. You either need to use foldr to defer
by rzzzt 8y ago
You're right, the process does start from the higher coefficients, and so does not really support the ordering presented.
You either need to use foldr to defer the multiply-and-add until the end of the list is processed, or reverse the list before processing it.