Created
October 14, 2016 23:43
-
-
Save patricklynch/9b52111d6d5f4ba4f480fdc93c1e09a7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import Foudnation | |
extension Dictionary where Key: AnyHashable, Value: AnyHashable { | |
var queryString: String? { | |
var output: String = "" | |
var i = 0 | |
for (key, i) in self.keys.enumerate() { | |
output += prefix + "\(key)=\(self[value])" | |
} | |
return output | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment