Is there a simple way of testing if the generator has no items, like peek
, hasNext
, isEmpty
, something along those lines?

Is there a simple way of testing if the generator has no items, like peek
, hasNext
, isEmpty
, something along those lines?