who-min-of-turtles
[list of commands]
Parameters:
[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 two elements: the turtle ID with the minimum value of the [list of commands] when evaluated across all the turtles, and that minimum value.
Examples:
who-min-of-turtles [energy]
returns a list with the who number of the turtle with the least energy and the smallest energy value: [34 0.4]
.
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-turtles
who-min-of-breed
who-min-of-turtles-with