NumListExtensions extension

Common num list extensions

on

Properties

average num

Available on List<num>, provided by the NumListExtensions extension

Calculates the average value of all elements in the list. Returns 0 if the list is empty to avoid division by zero. Otherwise, returns the sum of all elements divided by the count of elements. Example:
no setter
sum num

Available on List<num>, provided by the NumListExtensions extension

Calculates the sum of all elements in the list. Returns the sum as a number. Example usage:
no setter