mode-of-turtles
[list of commands]
Parameters:
[list of commands] |
List of turtle commands |
list of commands that evaluate to a number |
Description:
Returns the mode of the given [list of commands] when run over all the turtles.
Examples:
mode-of-turtles [speed]
returns the mode of the speed value of all turtles.
Notes:
Note: If [list of commands] contains no numbers, an error occurs. If some of the [list of commands], when evaluated, are not numbers, those values are ignored.
Note: 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-breed
mode-of-turtles-with
sdev-of-turtles
sum-of-turtles
variance-of-turtles