Challenge: Scoping Functions
Explore how to define a function in Kotlin that calculates the average of integers within a list using an appropriate scoping function. This lesson guides you through selecting the right scoping utility to process collections concisely within Kotlin's syntax.
We'll cover the following...
We'll cover the following...
Problem statement
Given a non-empty list of integers, you have to calculate their average within the scope of a scoping function. In particular, you have to perform ...