with-min 2.1
agentset with-min reporter
Takes two inputs: on the left, an agentset (usually “turtles” or “patches”). On the right, a reporter. Reports a new agentset containing only those agents that have the minimum value of the given reporter.
show count patches with-min [pycor]
;; prints the number of patches on the bottom edgeSee also min-one-of, min-n-of.