public T Next() { if (_first) { for (int i = 0; i < _count; ++i) { _source.Next(); } _first = false; } return(_source.Next()); }
public TResult Next() { while (true) { if (_source.Next() is TResult res) { return(res); } } }
public T Next() { if (!HasNext()) { throw new InvalidOperationException(); } ++_count; return(_source.Next()); }
public T Next() { while (true) { T temp = _source.Next(); if (_predicate(temp)) { return(temp); } } }
public TR Next() => _func(_yielderA.Next(), _yielderB.Next());
public TResult Next() => _fun(_source.Next());