A Admin • 828.03K Points Coach Q. How do you define a function that accepts a lambda in Kotlin? (A) fun test(lambda: function) (B) fun test(lambda: () -> Unit) (C) fun test(lambda: () => Void) (D) fun test(lambda: lambda) Correct Answer - Option(B) Views: 3 Filed under category Kotlin Hashtags: Share Manage Tags
Discusssion
Login to discuss.