📅  最后修改于: 2022-03-11 15:00:58.498000             🧑  作者: Mango
func flatMap(_ keyPath: KeyPath) -> [T] {
return self.flatMap { $0[keyPath: keyPath] }
}
let dependentItems = item.dependencies.flatMap(\.items)