`thingy?.let { Foo(it) } ?: Foo(defaultThingy, add...
# getting-started
k
thingy?.let { Foo(it) } ?: Foo(defaultThingy, additionalParam)
i
Note that it's equivalent only if `Foo`'s return type is non nullable @Hugh
👍 1
k
Ah I assumed
Foo
would be a constructor or factory method.
👍 1
h
Thanks guys, yep it's a constructor!