File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,8 @@ extension AsyncSequence {
236
236
/// The predicate executes each time the asynchronous sequence produces an
237
237
/// element, until either the predicate returns `false` or the sequence ends.
238
238
///
239
+ /// If the asynchronous sequence is empty, this method returns `true`.
240
+ ///
239
241
/// - Parameter predicate: A closure that takes an element of the asynchronous
240
242
/// sequence as its argument and returns a Boolean value that indicates
241
243
/// whether the passed element satisfies a condition.
Original file line number Diff line number Diff line change @@ -529,6 +529,8 @@ extension Sequence {
529
529
/// let allHaveAtLeastFive = names.allSatisfy({ $0.count >= 5 })
530
530
/// // allHaveAtLeastFive == true
531
531
///
532
+ /// If the sequence is empty, this method returns `true`.
533
+ ///
532
534
/// - Parameter predicate: A closure that takes an element of the sequence
533
535
/// as its argument and returns a Boolean value that indicates whether
534
536
/// the passed element satisfies a condition.
You can’t perform that action at this time.
0 commit comments