f# list.fold code example Example: c# fold list double product = doubles.Aggregate(1.0, (prod, next) => prod * next);