Skip to content

Change sum to total and make a new implemntation of sum #28

@65001

Description

@65001

Is your feature request related to a problem? Please describe.
We should change rename the current sum function to be called total and create a new sum function that takes four parameters such as start index, end index, index variable, function.

This new sum function could have optimizations such as the sum of [0,n] or [1,n] is known to be n * (n - 1)/2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions