Abhimanyu
07/18/2023, 5:39 AMval updateTitle: (updatedTitle: String) -> Unit,
and
val updateTitle: (String) -> Unit,
Both can be called in the same way and lambda can not have named arguments.
So curious if there is any difference I am missing out.xiaofei
07/18/2023, 6:02 AMupdatedTitle
in first case when you invoke updateTitle()
.xiaofei
07/18/2023, 6:04 AMAbhimanyu
07/18/2023, 4:22 PM