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

Which statement about appending key paths is correct?

struct A { var b: B } struct B { var c: Int } let kpAB: KeyPath<A, B> = \A.b let kpBC: KeyPath<B, Int> = \B.c