sum -- provides the sum of the members of a list, set, or chain complex, optionally with a function applied to each one.
Ways to use sum :