Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftgenerics and constraintsSingle-choice MCQ

Consider a `where` clause on a constrained extension. Which statement about this extension is correct?

extension Array where Element: Equatable { func allEqual() -> Bool { guard let first = first else { return true } return allSatisfy { $0 == first } } }