Turtle and Observer Command

median-of-frogs [list of commands]

[list of commands] is evaluated for all turtles of breed frogs. The process then returns the median of [list of commands] when run over all these turtles.

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

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

Related commands:

median-of-frogs-with median-of-list median-of-patches median-of-turtles average-of-frogs variance-of-frogs