Skip to content

Instantly share code, notes, and snippets.

@yetone
Forked from kourge/gist:38c1d3a07a5dee9407c0
Last active August 29, 2015 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetone/3d372a8cdae5ac315d69 to your computer and use it in GitHub Desktop.
Save yetone/3d372a8cdae5ac315d69 to your computer and use it in GitHub Desktop.
operator infix => { associativity left }
func => <K : Hashable, V>(key: K, value: V) -> (K, V) {
return (key, value)
}
let pairs: (String, Int)[] = [
"e" => 10,
"t" => 7,
"i" => 2
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment