Netlogo: efficient iteration using ‘foreach’
I want to calculate and store two certain quantities associated with turtles’ properties, namely count how many turtles meet a condition and the sum of these turtles’ specific attribute. That specific attribute takes discrete, integer, non-sequential values.