IntListExtensions extension
Common num list extensions
Properties
- average → double
-
Available on List<
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:int> , provided by the IntListExtensions extensionno setter - sum → int
-
Available on List<
Calculates the sum of all elements in the list. Returns the sum as a number. Example usage:int> , provided by the IntListExtensions extensionno setter