Turtle, Observer, Patch

max-of-patches [list of commands]

Parameters:
[list of commands] List of commands list of commands that evaluate to a number

Description:
Evaluates the [list of commands] given for every patch. Returns the coordinates of the patch whose [list of commands] value is greatest, or returns a list of coordinates if there is more than one patch with that minimum value.

Examples:
max-of-patches [food] returns the coordinates of the patch whose food variable is the largest.

Notes:
If [list of commands] contains no numbers, the smallest possible number is returned. If some of the [list of commands], when evaluated, are not numbers, those values are ignored.

Related Commands:
max-of-turtles median-of-patches min-of-patches mode-of-patches sdev-of-patches sum-of-patches variance-of-patches