Skip to content

Instantly share code, notes, and snippets.

@patricklynch
Created October 14, 2016 23:43
Show Gist options
  • Save patricklynch/9b52111d6d5f4ba4f480fdc93c1e09a7 to your computer and use it in GitHub Desktop.
Save patricklynch/9b52111d6d5f4ba4f480fdc93c1e09a7 to your computer and use it in GitHub Desktop.
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