Turtle, Observer, Patch

who-max-of-breed-with [condition] [list of commands]

Parameters:
[condition] List of turtle commands An expression that returns a true or false value
[list of commands] List of turtle commands A list of commands for the turtles to run which returns a number

Description:
Returns a list of the turtle with the maximum value of [list of commands] when evaluated across all the turtles of breed frogs that satisfy the condition (must return a boolean of true or false) specified by the [condition]., and the maximum value.

Examples:
who-max-of-frogs-with [color = red] [energy] returns a list with the who number of the red frog with the most energy and the highest energy value: [2 5].

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.

If no turtles satisfy [condition], who-max-of-frogs-with returns [nobody minnum].

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

Related Commands:
who-max-of-breed who-max-of-turtles-with who-min-of-breed-with