elect
12/18/2019, 7:54 PMinline fun defaultCheck(result: VkResult) = result.check()
fun bar(check: (VkResult) -> Unit = ::defaultCheck) {
check(..)
}
would there be any allocation regarding passing the lambda to bar
?Dominaezzz
12/20/2019, 9:28 AMelect
12/20/2019, 11:10 AMDominaezzz
12/20/2019, 12:23 PM