max-of-turtles [list of commands]
Reports the highest value of [list of commands] when run
over all of the turtles . Note: This command can also be executed
by patches, for example within an ask-patches statement.
Note: 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.
Note: When a turtle calls the command, it is not included as part of
the calculation.
Examples:
max-of-turtles-with [speed] reports the speed of the fastest
turtle.
Related commands:
|