Adapt the doc of sum to its implementation