[Swift Intermediate #8] Swift KeyPath explained: how map(\.name) works
\.name is not shorthand syntax for map, but a value of the independent KeyPath type. This article explains what it means to turn property access into a value, the three layers—read-only, value-type writable, and reference-type writable—and practical use cases.
Read article