Hey there, tried searching a bit, but had a hard t...
# getting-started
n
Hey there, tried searching a bit, but had a hard time coming up with an answer. What if I want a valuable to be of a non-null type, so I use lateinit, but I can't guarantee that the value has been set during construction. Is there any way to lazily initialize it to an empty value before it's used the first time?
e
Maybe
by lazy{}
will do the work