mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Call out the behavior for empty sequences.
Fixes rdar://60543202
(cherry picked from commit d0d4a88823)
This commit is contained in:
@@ -529,6 +529,8 @@ extension Sequence {
|
||||
/// let allHaveAtLeastFive = names.allSatisfy({ $0.count >= 5 })
|
||||
/// // allHaveAtLeastFive == true
|
||||
///
|
||||
/// If the sequence is empty, this method returns `true`.
|
||||
///
|
||||
/// - Parameter predicate: A closure that takes an element of the sequence
|
||||
/// as its argument and returns a Boolean value that indicates whether
|
||||
/// the passed element satisfies a condition.
|
||||
|
||||
Reference in New Issue
Block a user