In Kotlin, what is the correct way to create a lambda function? - Study24x7
Social learning Network
5 followers study24x7 09 Nov 2024 03:00 PM study24x7 study24x7

In Kotlin, what is the correct way to create a lambda function?

A

{ arg -> println(arg) }

B

fun { arg -> println(arg) }

C

lambda { arg -> println(arg) }

D

func { arg -> println(arg) }

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles