File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -74,37 +74,36 @@ Recent Changes
74
74
75
75
; by `@tobz1000 <https://github.com/tobz1000 >`_
76
76
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 >`_:
78
78
79
- ``[0, 1, 2].iter().combinations (2) `` yields
79
+ ``[0, 1, 2].iter().combinations_with_replacement (2) `` yields
80
80
81
81
.. code :: rust
82
82
83
83
[
84
+ vec![0, 0],
84
85
vec![0, 1],
85
86
vec![0, 2],
87
+ vec![1, 1],
86
88
vec![1, 2],
89
+ vec![2, 2],
87
90
]
88
91
89
- ; by `@tobz1000 <https://github.com/tobz1000 >`_
92
+ ; by `@tommilligan <https://github.com/tommilligan >`_
90
93
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 >`_:
92
96
93
- ``[0, 1, 2].iter().combinations_with_replacement (2) `` yields
97
+ ``[0, 1, 2].iter().combinations (2) `` yields
94
98
95
99
.. code :: rust
96
100
97
101
[
98
- vec![0, 0],
99
102
vec![0, 1],
100
103
vec![0, 2],
101
- vec![1, 1],
102
104
vec![1, 2],
103
- vec![2, 2],
104
105
]
105
106
106
- ; by `@tommilligan <https://github.com/tommilligan >`_
107
-
108
107
- Improved the performance of `.fold() <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.fold >`_-based internal iteration for the
109
108
`.intersperse() <https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method.intersperse >`_ iterator
110
109
; by `@jswrenn <https://github.com/jswrenn >`_
You can’t perform that action at this time.
0 commit comments