Lichen

lib/itertools.py

292:436d7832ca66
2016-12-01 Paul Boddie Introduced the itemaccess class as the base of sequence types and strings. Added support for obtaining substrings from strings. Added tests of string operations. Removed the superfluous _tuple function from the sequence module.
     1 #!/usr/bin/env python     2      3 class chain:     4     def __init__(self, *iterables):     5         pass     6      7     def __iter__(self):     8         pass     9     10     def from_iterable(self, iterable):    11         pass    12     13     def next(self):    14         pass    15     16 class combinations:    17     def __init__(self, iterable, r):    18         pass    19     20     def __iter__(self):    21         pass    22     23     def next(self):    24         pass    25     26 class combinations_with_replacement:    27     def __init__(self, iterable, r):    28         pass    29     30     def __iter__(self):    31         pass    32     33     def next(self):    34         pass    35     36 class compress:    37     def __init__(self, data, selectors):    38         pass    39     40     def __iter__(self):    41         pass    42     43     def next(self):    44         pass    45     46 class count:    47     def __init__(self, start=0, step=1):    48         pass    49     50     def __iter__(self):    51         pass    52     53     def next(self):    54         pass    55     56 class cycle:    57     def __init__(self, iterable):    58         pass    59     60     def __iter__(self):    61         pass    62     63     def next(self):    64         pass    65     66 class dropwhile:    67     def __init__(self, predicate, iterable):    68         pass    69     70     def __iter__(self):    71         pass    72     73     def next(self):    74         pass    75     76 class groupby:    77     def __init__(self, iterable, keyfunc=None):    78         pass    79     80     def __iter__(self):    81         pass    82     83     def next(self):    84         pass    85     86 class ifilter:    87     def __init__(self, function, sequence):    88         pass    89     90     def __iter__(self):    91         pass    92     93     def next(self):    94         pass    95     96 class ifilterfalse:    97     def __init__(self, function, sequence):    98         pass    99    100     def __iter__(self):   101         pass   102    103     def next(self):   104         pass   105    106 class imap:   107     def __init__(self, func, *iterables):   108         pass   109    110     def __iter__(self):   111         pass   112    113     def next(self):   114         pass   115    116 class islice:   117     def __init__(self, iterable, start_or_stop, stop=None, step=None):   118         pass   119    120     def __iter__(self):   121         pass   122    123     def next(self):   124         pass   125    126 class izip:   127     def __init__(self, *args):   128         pass   129    130     def __iter__(self):   131         pass   132    133     def next(self):   134         pass   135    136 class izip_longest:   137     def __init__(self, *args, **kw): #fillvalue=None   138         pass   139    140     def __iter__(self):   141         pass   142    143     def next(self):   144         pass   145    146 class permutations:   147     def __init__(self, iterable, r=None):   148         pass   149    150     def __iter__(self):   151         pass   152    153     def next(self):   154         pass   155    156 class product:   157     def __init__(self, *iterables):   158         pass   159    160     def __iter__(self):   161         pass   162    163     def next(self):   164         pass   165    166 class repeat:   167     def __init__(self, object, times=None):   168         pass   169    170     def __iter__(self):   171         pass   172    173     def next(self):   174         pass   175    176 class starmap:   177     def __init__(self, function, sequence):   178         pass   179    180     def __iter__(self):   181         pass   182    183     def next(self):   184         pass   185    186 class takewhile:   187     def __init__(self, predicate, iterable):   188         pass   189    190     def __iter__(self):   191         pass   192    193     def next(self):   194         pass   195    196 def tee(iterable, n=2):   197     pass   198    199 # vim: tabstop=4 expandtab shiftwidth=4