Skip to content

Commit dc790cd

Browse files
committed
Clarify that the determining factor for being grouped is equality (Equatable), which doesn’t necessarily mean the _same_ value (identity)
1 parent da475ea commit dc790cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Chunked.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ extension LazySequenceProtocol where Self: Collection, Elements: Collection {
218218
}
219219

220220
/// Returns a lazy collection of subsequences of this collection, chunked by
221-
/// grouping elements that project to the same value.
221+
/// grouping elements that project to the equal values.
222222
///
223223
/// - Complexity: O(*n*), because the start index is pre-computed.
224224
@inlinable
@@ -266,7 +266,7 @@ extension Collection {
266266
}
267267

268268
/// Returns a collection of subsequences of this collection, chunked by
269-
/// grouping elements that project to the same value.
269+
/// grouping elements that project to equal values.
270270
///
271271
/// - Complexity: O(*n*), where *n* is the length of this collection.
272272
@inlinable

0 commit comments

Comments
 (0)