Skip to content

Commit

Permalink
docs: mention permute with replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 authored and Philippe-Cholet committed Oct 6, 2023
1 parent 8db450f commit efa8ae7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,9 @@ pub trait Itertools: Iterator {
///
/// If `k` is greater than the length of the input iterator, the resultant
/// iterator adaptor will be empty.
///
/// If you are looking for permutations with replacements,
/// use `repeat_n(iter, k).multi_cartesian_product()` instead.
///
/// ```
/// use itertools::Itertools;
Expand Down

0 comments on commit efa8ae7

Please sign in to comment.