Is there a better way to use let and smartcast on ...
# codereview
s
Is there a better way to use let and smartcast on multiple nullables?
Copy code
inline fun <T, U> multiLet( param1 : T?, param2 : U?, block : (T, U) -> Unit ) {
    if( param1 != null && param2 != null ) {
        block( param1, param2 )
    }
}