Join Slack
Powered by
<How do I sum all the items of a list of integers ...
# stackoverflow
u
user
10/17/2018, 9:16 AM
How do I sum all the items of a list of integers in Kotlin?
I have a list of integers, like: val myList = listOf(3,4,2) Is there any quick way in Kotlin to sum all the values of the list? or do I have to use a loop? Thanks.
Open in Slack
Previous
Next