Example #1
0
def guarded_enumerate(seq, start=0):
    return NullIter(enumerate(guarded_iter(seq), start=start))
Example #2
0
 def guarded_all(seq):
     return all(guarded_iter(seq))
Example #3
0
def guarded_enumerate(seq, start=0):
    return NullIter(enumerate(guarded_iter(seq), start=start))
Example #4
0
 def guarded_any(seq):
     return any(guarded_iter(seq))