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
Sometimes it's desirable to check whether an iterator will return any elements without using len, which is (presumably) O(N). You can probably use some_iterator.any(|_| true), but it would be nicer to hide that behind a nicer API I think.