Returns the total sum of the elements of the input list.
Using sum
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function sum(args: SumArgs, opts?: InvokeOptions): Promise<SumResult>
function sumOutput(args: SumOutputArgs, opts?: InvokeOptions): Output<SumResult>def sum(input: Optional[Sequence[float]] = None,
opts: Optional[InvokeOptions] = None) -> SumResult
def sum_output(input: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[SumResult]func Sum(ctx *Context, args *SumArgs, opts ...InvokeOption) (*SumResult, error)
func SumOutput(ctx *Context, args *SumOutputArgs, opts ...InvokeOption) SumResultOutput> Note: This function is named Sum in the Go SDK.
public static class Sum
{
public static Task<SumResult> InvokeAsync(SumArgs args, InvokeOptions? opts = null)
public static Output<SumResult> Invoke(SumInvokeArgs args, InvokeOptions? opts = null)
}fn::invoke:
function: std:sum
arguments:
# arguments dictionaryThe following arguments are supported:
- Input List<double>
- Input []float64
- input List<Double>
- input number[]
- input Sequence[float]
- input List<Number>
sum Result
The following output properties are available:
- Result double
- Result float64
- result Double
- result number
- result float
- result Number
Package Details
- Repository
- std pulumi/pulumi-std
- License
