Total¶
Sums the elements of a list.
A level-0 spec leaves the expression untouched:
An empty list totals to 0 at every positive level:
A trailing option is not a level spec, so it leaves the total alone:
By default only List is descended through, so another head is left as it is:
AllowedHeads -> All descends through any head:
Only as deep as the level asks, and an exact level keeps the head above it:
Rationals and complex numbers stay atoms however permissive the heads are: