library
/
com.secoo.coobox.library.ktx.kotlin
/
secondLastOrNull
second
Last
Or
Null
fun <
E
>
List
<
E
>.
secondLastOrNull
():
E
?
Content copied to clipboard
获取倒数第二个元素,如果List小于2个元素,返回null