SyntaxFix
Write A Post
Hire A Developer
Questions
In Kotlin, you can use the method last:
last
val lastItem = list.last()