asked in <#C0B8M7BUY|> but the question is pretty ...
# announcements
g
asked in #C0B8M7BUY but the question is pretty generic: Is it possible to pass lateinit in lazy? Ex:
Copy code
lateinit var foo

    val bar by lazy {  foo.foo()   }
It works but what if I want to wrap the lazy logic:
Copy code
lateinit var foo

    val bar by bind(foo)
...
fun bind(foo: Foo) = lazy { foo.foo() }
this time it doesn't, because foo is passed as a parameter.