Last active
April 18, 2022 09:11
-
-
Save gaeng2y/7e60e4edcabbdcd1481d382c9ead046a to your computer and use it in GitHub Desktop.
pure funciton example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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