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 Aug 10, 2023
1 parent c5afdd3 commit d136579
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 @@ -1661,6 +1661,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 d136579

Please sign in to comment.