From fa9d327449312a92601b4e4f1e6616950dd44d45 Mon Sep 17 00:00:00 2001 From: Tristan F Date: Thu, 10 Aug 2023 14:59:09 -0400 Subject: [PATCH] docs: mention permute with replacement --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 3d5f05c4f..968fb528a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;