Skip to content

Instantly share code, notes, and snippets.

@gaeng2y
Last active April 18, 2022 09:11
Show Gist options
  • Save gaeng2y/7e60e4edcabbdcd1481d382c9ead046a to your computer and use it in GitHub Desktop.
Save gaeng2y/7e60e4edcabbdcd1481d382c9ead046a to your computer and use it in GitHub Desktop.
pure funciton example
var num = 1
func add(a: Int) -> Int {
return a + num
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment