Reports the sum of the items in the list.
show sum [energy] of turtles ;; prints the total of the variable "energy" ;; from all the turtles
See this FAQ question for information on possible issues using sum with agentsets
Take me to the full NetLogo Dictionary