gildor
12/14/2018, 6:05 AMand I also want lazy with arguments from local scopeimo it looks as anti-patern singleton with params. Why do you need this? Vlastimil Brecka [4 minutes ago] @gildor basically caching some synchronous calculation for example loading bitmap. Successive calls of the function if need to !! in the else branch, just ugly.. Andrey Mischenko [3 minutes ago] You don’t need lazy for that also just use coroutines and Deferred (edited) Vlastimil Brecka [3 minutes ago] hmm neverheard of it Vlastimil Brecka [2 minutes ago] oh cooroutines, nah, its synchronous code Vlastimil Brecka [2 minutes ago] val _bitmap = if bitmap == null loadBitmap(some param) else bitmap!!