"Sputnik" help  
Sputnik Help
SumUInt(<array>, <queryStm>)

Description

Calculates the sum of values in an array based on a specified query statement. (Values will be used as or converted to 64-Bit Unsigned Integers)

Parameters

<array> The array containing values.
<queryStm> The query statement to evaluate for each array element to obtain the values.

Return Value

Success: Returns the sum of the values in the array.
Failure: Returns 0.

Remarks

The SumUInt function is designed to calculate the sum of values in an array based on a specified query statement.

Make sure to read about the ->> and the =>> operators which are very often used in Linq statements.

Related

Example

Example of usage:

my $a = [10, 5, 2];
say SumUInt($a, $c => $c);
// PRINTS
// 17

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org