Collection Operations (map, filter, fold) (Kotlin)

Kotlin provides functional operations on collections — map, filter, fold, groupBy, and more — that transform data declaratively with lambdas instead of…