Turtle, Observer, Patch

median-of-turtles [list of commands]

Parameters:
[list of commands] Number

Description:
Returns the median [list of commands] when [list of commands] is evaluated for all turtles.

Examples:
median-of-turtles [color] returns a number corresponding to the median of the colors of all turtles on the screen.

Notes:
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.

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-breed median-of-turtles-with min-of-turtles mode-of-turtles sdev-of-turtles sum-of-turtles variance-of-turtles