@@ -210,8 +210,8 @@ extension Collection {
210
210
//===----------------------------------------------------------------------===//
211
211
212
212
extension Sequence {
213
- /// Returns two arrays containing, in order, the elements of the sequence that
214
- /// do and don’t satisfy the given predicate.
213
+ /// Returns two arrays containing the elements of the sequence that
214
+ /// don’t and do satisfy the given predicate, respectively .
215
215
///
216
216
/// In this example, `partitioned(by:)` is used to separate the input based on
217
217
/// whether a name is shorter than five characters:
@@ -230,7 +230,9 @@ extension Sequence {
230
230
///
231
231
/// - Returns: Two arrays with all of the elements of the receiver. The
232
232
/// first array contains all the elements that `predicate` didn’t allow, and
233
- /// the second array contains all the elements that `predicate` allowed.
233
+ /// the second array contains all the elements that `predicate` allowed. The
234
+ /// order of the elements in the arrays matches the order of the elements in
235
+ /// the original sequence.
234
236
///
235
237
/// - Complexity: O(*n*), where *n* is the length of the sequence.
236
238
@inlinable
@@ -253,8 +255,8 @@ extension Sequence {
253
255
}
254
256
255
257
extension Collection {
256
- /// Returns two arrays containing, in order, the elements of the collection
257
- /// that do and don’t satisfy the given predicate.
258
+ /// Returns two arrays containing the elements of the collection that
259
+ /// don’t and do satisfy the given predicate, respectively .
258
260
///
259
261
/// In this example, `partitioned(by:)` is used to separate the input based on
260
262
/// whether a name is shorter than five characters.
@@ -273,7 +275,9 @@ extension Collection {
273
275
///
274
276
/// - Returns: Two arrays with all of the elements of the receiver. The
275
277
/// first array contains all the elements that `predicate` didn’t allow, and
276
- /// the second array contains all the elements that `predicate` allowed.
278
+ /// the second array contains all the elements that `predicate` allowed. The
279
+ /// order of the elements in the arrays matches the order of the elements in
280
+ /// the original collection.
277
281
///
278
282
/// - Complexity: O(*n*), where *n* is the length of the collection.
279
283
@inlinable
0 commit comments