Kotlin sum(), sumBy(), sumByDouble() and BigDecimal in List, Map example

In this Kotlin tutorial, I will show you some examples that uses sum(), sumBy(), sumByDouble() for List, Map. We’re gonna create sum() & sumByBigDecimal() which also work for List of BigDecimal objects.

Related Posts:
Kotlin List & Mutable List tutorial with examples
Kotlin Fold Example: fold(), foldRight(), foldIndexed(), foldRightIndexed()
Kotlin groupBy(), groupingBy() example

Read More