public bool MoveNext() { NonEmptyList <T> localList = _list; if ((uint)_index < (uint)localList.Count) { _current = localList[_index]; _index++; return(true); } _index = _list.Count + 1; _current = default; return(false); }
internal Enumerator(NonEmptyList <T> list) { _list = list; _index = 0; _current = default; }