Skip to content

Commit b3fd4e8

Browse files
bors[bot]mulkieran
andauthored
Merge #418
418: Add a stability specification to the docs for unique and unique_by r=jswrenn a=mulkieran Co-authored-by: mulhern <[email protected]>
2 parents 88796ed + ef96125 commit b3fd4e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,10 @@ pub trait Itertools : Iterator {
10211021
/// Clones of visited elements are stored in a hash set in the
10221022
/// iterator.
10231023
///
1024+
/// The iterator is stable, returning the non-duplicate items in the order
1025+
/// in which they occur in the adapted iterator. In a set of duplicate
1026+
/// items, the first item encountered is the item retained.
1027+
///
10241028
/// ```
10251029
/// use itertools::Itertools;
10261030
///
@@ -1043,6 +1047,10 @@ pub trait Itertools : Iterator {
10431047
/// with the keying function `f` by hash and equality.
10441048
/// The keys are stored in a hash set in the iterator.
10451049
///
1050+
/// The iterator is stable, returning the non-duplicate items in the order
1051+
/// in which they occur in the adapted iterator. In a set of duplicate
1052+
/// items, the first item encountered is the item retained.
1053+
///
10461054
/// ```
10471055
/// use itertools::Itertools;
10481056
///

0 commit comments

Comments
 (0)