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 jswrenn committed Oct 3, 2023
1 parent 0897f56 commit fa9d327
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 fa9d327

Please sign in to comment.