The Kotlin Primer
Published in

The Kotlin Primer

Collection Operations: Aggregators

An introduction to the most important functions for aggregation: fold, reduce, average, count, sum, min, max, and their variants. A quick note on converting collections to strings using joinToString.

--

--

The Kotlin Primer is a comprehensive guide to learning the Kotlin language, intended to facilitate its adoption inside a Java-centric organization. It makes no assumptions about seniority, and has been successfully applied inside a service-oriented business.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store