Because if you write it this way, F # thinks you're trying to call +with List.foldas its left argument and 0 aListOfNumbersas its right argument.
To give an infix operator as an argument to the function you need to copy into it:
let sum = List.fold (+) 0 aListOfNumbers
source
share