You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently isEmpty() will return false when an instance of Generator is passed, because it is an \Iterator, but doesn't implement the \Countable interface, so the predicate uses empty() on the variable which naturally returns false as the variable is not empty. However, the question arises if this is expected behavior when passing an instance of \Generator.
The text was updated successfully, but these errors were encountered:
Currently
isEmpty()
will returnfalse
when an instance ofGenerator
is passed, because it is an\Iterator
, but doesn't implement the\Countable
interface, so the predicate usesempty()
on the variable which naturally returnsfalse
as the variable is not empty. However, the question arises if this is expected behavior when passing an instance of\Generator
.The text was updated successfully, but these errors were encountered: