who-max-of-breed
[list of commands]
Parameters:
[list of commands] |
List of turtle commands |
A list of commands for the frogs to run which returns a number |
Description:
Returns a list of two elements: the turtle ID with the maximum value of the [list of commands] when evaluated across all the turtles of breed frogs
, and that maximum value.
Examples:
who-max-of-frogs [energy]
returns a list with the who number of the 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.
When a turtle calls the command, it, itself, is not included as part of the calculation.
Related Commands:
who-max-of-breed-with
who-max-of-turtles
who-min-of-breed