A

Admin • 833K Points
Coach

Q. What is the return type of a lambda in Kotlin by default?

  • (A) Int
  • (B) Unit
  • (C) Any
  • (D) Void
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Unless specified otherwise, lambdas return Unit if no return is declared.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.