xsum
Sum of ints and lists.
def xsum(
nums: list
) - > int
Sum of ints and lists.
Parameters
| Name | Type | Description |
|---|---|---|
| nums | list | A collection of integers or nested iterables containing integers to be aggregated |
Returns
| Type | Description |
|---|---|
int | The total sum of all individual integers and the flattened contents of any iterable elements within the input list |