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
/
penultimate
penultimate
fun
<
T
>
List
<
T
>
.
penultimate
(
)
:
T
Returns the element before the last one.
Throws
Index
Out
Of
Bounds
Exception
if the list has fewer than two elements.