Skip to content

Instantly share code, notes, and snippets.

@thatswiftguy
Last active July 10, 2021 12:43
Show Gist options
  • Save thatswiftguy/d598d9ec73aedd2e9ba4f2f6d6e8fe02 to your computer and use it in GitHub Desktop.
Save thatswiftguy/d598d9ec73aedd2e9ba4f2f6d6e8fe02 to your computer and use it in GitHub Desktop.
// Mark:- First Point
private func addingOf(_ num1: Int, and num2: Int) {
print("\(num1) + \(num2) = \(num1 + num2)")
}
// Mark:- Second Point
private func increment(_ value: inout Int) {
value += 1
print(value)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment