Skip to content

Commit 4d2bd4e

Browse files
tristan-f-rjswrenn
authored andcommitted
docs: mention permute with replacement
1 parent 8db450f commit 4d2bd4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,9 @@ pub trait Itertools: Iterator {
16761676
/// If `k` is greater than the length of the input iterator, the resultant
16771677
/// iterator adaptor will be empty.
16781678
///
1679+
/// If you are looking for permutations with replacements,
1680+
/// use `repeat_n(iter, k).multi_cartesian_product()` instead.
1681+
///
16791682
/// ```
16801683
/// use itertools::Itertools;
16811684
///

0 commit comments

Comments
 (0)