Skip to content

Commit a7a1203

Browse files
Removed .combinations() being featured as new
... but it has been kept to offer a place where all three combinatory methods can be quickly compared to each other
1 parent dfc55d8 commit a7a1203

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.rst

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,36 @@ Recent Changes
7474
7575
; by `@tobz1000 <https://github.com/tobz1000>`_
7676

77-
- `.combinations(k) <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.combinations>`_:
77+
- `.combinations_with_replacement(k) <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.combinations_with_replacement>`_:
7878

79-
``[0, 1, 2].iter().combinations(2)`` yields
79+
``[0, 1, 2].iter().combinations_with_replacement(2)`` yields
8080

8181
.. code:: rust
8282
8383
[
84+
vec![0, 0],
8485
vec![0, 1],
8586
vec![0, 2],
87+
vec![1, 1],
8688
vec![1, 2],
89+
vec![2, 2],
8790
]
8891
89-
; by `@tobz1000 <https://github.com/tobz1000>`_
92+
; by `@tommilligan <https://github.com/tommilligan>`_
9093

91-
- `.combinations_with_replacement(k) <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.combinations_with_replacement>`_:
94+
- For reference, these methods join the already existing
95+
`.combinations(k) <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.combinations>`_:
9296

93-
``[0, 1, 2].iter().combinations_with_replacement(2)`` yields
97+
``[0, 1, 2].iter().combinations(2)`` yields
9498

9599
.. code:: rust
96100
97101
[
98-
vec![0, 0],
99102
vec![0, 1],
100103
vec![0, 2],
101-
vec![1, 1],
102104
vec![1, 2],
103-
vec![2, 2],
104105
]
105106
106-
; by `@tommilligan <https://github.com/tommilligan>`_
107-
108107
- Improved the performance of `.fold() <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.fold>`_-based internal iteration for the
109108
`.intersperse() <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.intersperse>`_ iterator
110109
; by `@jswrenn <https://github.com/jswrenn>`_

0 commit comments

Comments
 (0)