Buy me a coffee
Kotlin
›
リスト
›
first
←
isEmpty
first
リスト
last
→
最初の要素を返します。
構文
list.first() / list.firstOrNull()