Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas

PatilShreyas/Lambdas.kt Secret

Created Dec 29, 2020
Embed
What would you like to do?
fun main() {
val add: (Int, Int) -> Int = {a, b -> a + b}
val result = add(10, 20)
println(result) // prints "30"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment