Skip to content

Commit efa8ae7

Browse files
tristan-f-rPhilippe-Cholet
authored andcommitted
docs: mention permute with replacement
1 parent 8db450f commit efa8ae7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

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

0 commit comments

Comments
 (0)