elect
02/21/2025, 8:28 AMit by silencing the latter with _
call.details.map {
i18nClient.takeIf { _ -> !it.isMarked }Stefan Oltmann
02/21/2025, 8:42 AMcall.details.map { detail ->
i18nClient.takeIf { client -> !detail.isMarked }
}
just to make clear was it is.Stefan Oltmann
02/21/2025, 8:43 AMcall.details.map { detail ->
i18nClient.takeIf { !detail.isMarked }
}Stefan Oltmann
02/21/2025, 8:44 AMit in generalelect
02/21/2025, 10:13 AMStefan Oltmann
02/21/2025, 1:20 PMdarkmoon_uk
02/23/2025, 11:12 PMit in my code - I always do one of:
• Give a proper label - usually makes the code read much better IMO
• Use a function reference so that there's no exposed lambda to label