Skip to content

Instantly share code, notes, and snippets.

@sagarpatel288
Created April 23, 2020 12:36
Show Gist options
  • Save sagarpatel288/efcf9786f062c36cb92aee1a6b33159e to your computer and use it in GitHub Desktop.
Save sagarpatel288/efcf9786f062c36cb92aee1a6b33159e to your computer and use it in GitHub Desktop.
Pass lambda expression as an argument
println(doSomething(1, 2, lambda)) //prints: doSomething: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment