<s> __revision__ = "<STR_LIT>" <EOL> __doc__ = """<STR_LIT>""" <EOL> def chain ( * iterables ) : <EOL> result = [ ] <EOL> for x in iterables : <EOL> result . extend ( list ( x ) ) <EOL> return result <EOL> def count ( n = <NUM_LIT:0> ) : <EOL> raise NotImplementedError <EOL> def cycle ( iterable ) : <EOL> raise NotImplementedError <EOL> def dropwhile ( predicate , iterable ) : <EOL> result = [ ] <EOL> for x in iterable : <EOL> if not predicate ( x ) : <EOL> result . append ( x ) <EOL> break <EOL> result . extend ( iterable ) <EOL> return result <EOL> def groupby ( iterable , * args ) : <EOL> raise NotImplementedError <EOL> def ifilter ( predicate , iterable ) : <EOL> result = [ ] <EOL> if predicate is None : <EOL> predicate = bool <EOL> for x in iterable : <EOL> if predicate ( x ) : <EOL> result . append ( x ) <EOL> return result <EOL> def ifilterfalse ( predicate , iterable ) : <EOL> result = [ ] <EOL> if predicate is None : <EOL> predicate = bool <EOL> for x in iterable : <EOL> if not predicate ( x ) : <EOL> result . append ( x ) <EOL> return result <EOL> def imap ( function , * iterables ) : <EOL> return apply ( map , ( function , ) + tuple ( iterables ) ) <EOL> def islice ( * args , ** kw ) : <EOL> raise NotImplementedError <EOL> def izip ( * iterables ) : <EOL> return apply ( zip , iterables ) <EOL> def repeat ( * args , ** kw ) : <EOL> raise NotImplementedError <EOL> def starmap ( * args , ** kw ) : <EOL> raise NotImplementedError <EOL> def takewhile ( predicate , iterable ) : <EOL> result = [ ] <EOL> for x in iterable : <EOL> if predicate ( x ) : <EOL> result . append ( x ) <EOL> else : <EOL> break <EOL> return result <EOL> def tee ( * args , ** kw ) : <EOL> raise NotImplementedError </s>
