Exemple #1
0
            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);
            }
Exemple #2
0
 internal Enumerator(NonEmptyList <T> list)
 {
     _list    = list;
     _index   = 0;
     _current = default;
 }