KiteCore
Toggle table of contents
0.1.0
Guide
GitHub
common
Target filter
common
Switch theme
Search in API
Skip to content
KiteCore
kitecore
/
io.github.yuroyami.kitecore.collections
/
headAndTailOrNull
head
And
Tail
Or
Null
fun
<
T
>
List
<
T
>
.
headAndTailOrNull
(
)
:
Pair
<
T
,
List
<
T
>
>
?
Returns the first element paired with the remaining elements, or null if the list is empty.