DEV Community

Discussion on: Daily Challenge #225 - Square'n'Sum

Collapse
 
pavi2410 profile image
Pavitra Golchha

Kotlin

val squareSum = { arr: List<Int> -> arr.map { it * it }.sum() }