We are in list of top 6 nuclear power submirrene countries
0 replies4 likes
Yasir Alam
Stealth • 8m
Question: What is the output of the following Kotlin code snippet?
fun main() {
val list = mutableListOf(1, 2, 3, 4, 5)
val result = list.fold(5) { acc, num -> acc * num }
println(result)
}