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
/
headAndTail
head
And
Tail
fun
<
T
>
List
<
T
>
.
headAndTail
(
)
:
Pair
<
T
,
List
<
T
>
>
Returns the first element paired with a list of the remaining elements.
Throws
No
Such
Element
Exception
if the list is empty.