Adam Wilder
04/21/2022, 5:44 PM.mapNotNull
if possible? Or is it strictly a judgement call based on the size of the data expected since iterating over a list of size 2 twice is really not a big dealPaul Griffith
04/21/2022, 5:46 PMPaul Griffith
04/21/2022, 5:46 PMAdam Wilder
04/21/2022, 5:57 PMmapNotNull { if (condition) transform else null }
as an alternative to filter { condition }.map { transform }
. I admitted it is technically more efficient but argued that the filter/map was more readable. Any thoughts on that?Matthew Gast
04/21/2022, 7:05 PMFleshgrinder
04/21/2022, 7:11 PM