Is it possible to key-value code (KVC) with native Swift data structures such as Array and Dictionary? Key-Value coding is still available for NSFoundation structures within
How about this:
let names = array.map { $0.name }
Instead of using key paths you can directly refer to property or method.