A generator function which uses a priority queue to yield each pokemon from a given side of the field in speed order.
The side of the field to use
side
A Generator of Pokemon
Generator
Pokemon
This should almost always be used by iteration in a for...of loop
for...of
A generator function which uses a priority queue to yield each pokemon from a given side of the field in speed order.