Turtle and Observer Command

median-of-turtles [list of commands]

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

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.

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

Related commands:
median-of-turtles-with median-of-frogs median-of-list median-of-patches average-of-turtles variance-of-turtles