public bool MoveNext() { if (source.GetEnumerator().MoveNext()) { current = fun(source.GetEnumerator().Current); return(true); } Reset(); return(false); }
public bool MoveNext() { if (source.GetEnumerator().MoveNext()) { while (!cond(source.GetEnumerator().Current)) { source.GetEnumerator().MoveNext(); } current = source.GetEnumerator().Current; return(true); } Reset(); return(false); }