예제 #1
0
 public IOption <T> GetNext()
 {
     if (iterator.MoveNext())
     {
         return(new Some <T>(iterator.Current));
     }
     else
     {
         return(new None <T>());
     }
 }
예제 #2
0
 new public bool MoveNext()
 {
     return(decoratedCollection.MoveNext());
 }