Add

public struct Add: Fn

Add computes the sum of a list of numbers. Attempting to add fewer that two numbers will result in an “invalid argument” error.

Reference.

  • Declaration

    Swift

    public init(_ terms: Expr...)

    Parameters

    terms

    Numbers to be added.