toDictionary(with:)

Declaration

func toDictionary<Key>(with selectKey: (Element) -> Key) -> [Key : Element] where Key : Hashable