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)
}
4 replies5 likes
Mehul Fanawala
•
The Clueless Company • 5m
Final result!
I'm at the 19th position.
It was a really amazing experience. 😍
13 replies6 likes
Afzal Khan
Stealth • 2m
#Free pavel durov.
Telegram CEO is in court of France what will be the result