Skip to content

[Suggestions] add sum function to math #44674

Closed
@erf

Description

@erf

Have you considered adding a sum(a, b) function to the mathpackage for adding two numbers together.

Example implementation:

T sum<T extends num>(T lhs, T rhs) => (lhs + rhs) as T;

Nice to to have if you'd like to e.g. list.reduce(sum)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions