Size: 784
Comment:
|
Size: 971
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
== Accumulate == | == Usage == === Accumulate === |
Line 14: | Line 16: |
== Chain == | === Chain === |
Line 20: | Line 22: |
== Combinations == | === Combinations === |
Line 26: | Line 28: |
== Combinations_With_Replacement == | === Combinations_With_Replacement === |
Line 32: | Line 34: |
== Compress == | === Compress === |
Line 38: | Line 40: |
== Count == | === Count === |
Line 44: | Line 46: |
== Cycle == | === Cycle === |
Line 50: | Line 52: |
== DropWhile == | === DropWhile === |
Line 55: | Line 57: |
== FilterFalse == | === FilterFalse === |
Line 61: | Line 63: |
== GroupBy == | === GroupBy === |
Line 67: | Line 69: |
== ISlice == | === ISlice === |
Line 73: | Line 75: |
== Pairwise == | === Pairwise === |
Line 79: | Line 81: |
== Permutations == | === Permutations === |
Line 85: | Line 87: |
== Product == | === Product === |
Line 91: | Line 93: |
== Repeat == | === Repeat === |
Line 97: | Line 99: |
== StarMap == | === StarMap === |
Line 103: | Line 105: |
== TakeWhile == | === TakeWhile === |
Line 109: | Line 111: |
== Tee == | === Tee === |
Line 115: | Line 117: |
== Zip_Longest == | === Zip_Longest === |
Line 123: | Line 125: |
[[https://docs.python.org/3/library/itertools.html|Python itertools module documentation]] | [[https://docs.python.org/3/library/itertools.html|Python itertools module documentation]] (''In particular, note the Itertools Recipes section which demonstrates how itertools can be composed into higher-level functions.'') |
Python Itertools
Contents
Usage
Accumulate
Chain
Combinations
Combinations_With_Replacement
Compress
Count
Cycle
DropWhile
FilterFalse
GroupBy
ISlice
Pairwise
Permutations
Product
Repeat
StarMap
TakeWhile
Tee
Zip_Longest
See also
Python itertools module documentation (In particular, note the Itertools Recipes section which demonstrates how itertools can be composed into higher-level functions.)