Dictionaries
These are some Dictionary shaped structures.
-
Interface for Dictionary-like structures.
See moreDeclaration
Swift
public protocol DictionaryProtocol : Collection -
Ordered Dictionary.
See moreDeclaration
Swift
public struct OrderedDictionary<Key, Value> : DictionaryProtocol where Key : Hashableextension OrderedDictionary: Collectionextension OrderedDictionary: ExpressibleByDictionaryLiteralextension OrderedDictionary: Equatable where Value: Equatableextension OrderedDictionary: Hashable where Value: Hashable -
Ordered dictionary which has sorted
See morekeys.Declaration
Swift
public struct SortedDictionary<Key, Value> : DictionaryProtocol where Key : Comparable, Key : Hashableextension SortedDictionary: Collectionextension SortedDictionary: BidirectionalCollectionextension SortedDictionary: RandomAccessCollectionextension SortedDictionary: ExpressibleByDictionaryLiteralextension SortedDictionary: Zeroextension SortedDictionary: Equatable where Value: Equatableextension SortedDictionary: Hashable where Value: Hashable -
Dictionary-like structure which allows O(1) access from
See moreKeytoValueas well as fromValuetoKey.Declaration
Swift
public struct Bimap<Key, Value> : Hashable where Key : Hashable, Value : Hashableextension Bimap: DictionaryProtocolextension Bimap: CollectionWrappingextension Bimap: ExpressibleByDictionaryLiteral
View on GitHub
Install in Dash
Dictionaries Reference