Woke up at 5 am and started writing code because I dreamt a feature for
@soshalsapp
in my sleep. This is kinda fun. Must try.
14 replies20 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)
}
Hii sir, is medial startup trivia , your official account, I also have a suggestion, could you make it more fun, I remember kishan's case study game, it was very fun. You could make it fun and more engaging like he did.