Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created June 4, 2018 08:30
Show Gist options
  • Save sajjadyousefnia/d7d961f261f0c0ef738f7554a0ef2e08 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/d7d961f261f0c0ef738f7554a0ef2e08 to your computer and use it in GitHub Desktop.
val addNumbers = { number1: Int, number2: Int ->
println("Adding $number1 and $number2")
val result = number1 + number2
println("The result is $result")
}
addNumbers(1, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment