Turtle, Observer, Patch

sum-of-turtles [list-of-commands]

Parameters:
[list-of-commands] List of commands list of commands which evaluate to a number

Description:
Reports the sum of [list-of-commands] for every turtle.

Examples:
show sum-of-turtles [weight * weight] prints the sum of every turtle's weight squared.

Notes:
When a turtle calls the command, it is not included as part of the calculation.

Related Commands:
average-of-turtles max-of-turtles median-of-turtles min-of-turtles mode-of-turtles sdev-of-turtles sum-of-breed sum-of-turtles-with variance-of-turtles