nil2l
03/06/2018, 8:12 AMif ( val foo1 = foo?.first?.second?.third?.fourth?.fifth ){
}
Why just not?
foo?.first?.second?.third?.fourth?.fifth?.let { foo1 ->
…
}
gildor
03/06/2018, 8:14 AMelse
you now need elvis operator and code become looks ugly