Skip to content

Instantly share code, notes, and snippets.

@Nadohs
Created June 17, 2015 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nadohs/9149c405a1f53a6dee23 to your computer and use it in GitHub Desktop.
Save Nadohs/9149c405a1f53a6dee23 to your computer and use it in GitHub Desktop.
where clause chaining 0_0
extension DictionaryLiteralConvertible where Key == String, Value == AnyObject {
func magicFilter(){
print("blah")
}
}
//WORKS
let test1 = [String : AnyObject]()
test1.magicFilter()
//DOESNT WORK ;(
let test2 = [String : String]()
test2.magicFilter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment