Skip to content

Instantly share code, notes, and snippets.

@mudphone
Last active December 2, 2016 01:49
Show Gist options
  • Save mudphone/8511d1e1a13a324f3948585dbda86623 to your computer and use it in GitHub Desktop.
Save mudphone/8511d1e1a13a324f3948585dbda86623 to your computer and use it in GitHub Desktop.
public class Presence {
func adder(a: Int, b: Int) -> Int {
return a + b
}
func anotherAdder(addy: (Int, Int) -> Int = adder) -> Int {
return addy(4, 5) + 6
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment