Sequence
extension Sequence
-
Filter a Sequence by an unique keypath
Declaration
Swift
func uniqued<Type: Hashable>(by keyPath: KeyPath<Element, Type>) -> [Element]
Parameters
keyPath
The keypath
Return Value
The unique Sequence