Skip to content

Instantly share code, notes, and snippets.

@gaeng2y
Created April 18, 2022 09:11
Show Gist options
  • Save gaeng2y/9972ed1e3cc42393ccd137cf53489b4d to your computer and use it in GitHub Desktop.
Save gaeng2y/9972ed1e3cc42393ccd137cf53489b4d to your computer and use it in GitHub Desktop.
pure function
func add(a: Int, b: Int) -> Int {
return a + b
}
let result = add(2, 3) // 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment