Last active
August 29, 2015 14:11
-
-
Save ajjames/37deb5f35b492e0692b4 to your computer and use it in GitHub Desktop.
DictionaryExtension to get implicit type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal extension Dictionary | |
{ | |
internal func get<V>(key:Key) -> V? { | |
return self.indexForKey(key) as? V | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment