Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftKeyPath expressionsSingle-choice MCQ

Two separately created key paths point to the same property: `let a = \User.name; let b = \User.name`. What does `a == b` evaluate to, and why?

struct User { var name: String } let a = \User.name let b = \User.name print(a == b)