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)
}
hi himanshu here, can you see my post ๐ ๐ ๐ ๐
5 replies4 likes
Vagle
Hakuna matataย โขย 3m
๐ฌ๐ ๐ ๐ (I mean in programming)
2 replies23 likes
Shuvodip Ray
Never compromise wit...ย โขย 2m
Instagram is now cheaper than Medial subscription ๐ ๐ ๐
5 replies5 likes
Havish Gupta
Inactive for a week ...ย โขย 1y
Agree or Not? ๐ ๐
6 replies11 likes
Ram Prasad Pokhrel
veer bhogya vasundha...ย โขย 7m
๐๐ ๐ ๐๐๐๐
1 replies3 likes
Ankit
Next billionaire ๐ซย โขย 10m
Which dating app is best ๐ซฃ๐ ๐
2 replies3 likes
Vikas Acharya
Building WelBe| Entr...ย โขย 2m
if you are the saas founder you should not miss !
โ Dark Mode.
โ Privacy Policy.
โ Company Mascot.
โ Articles.
โ Ooh, and... what else guys ??
1 replies3 likes
Himanshu Dube
Software Developerย โขย 6m
learning python. please ignore the mess, I am from uttarakhand it's very cold here right now๐๐ ๐ so had to be inside my rajai. Nice to be here.
app and rajai both๐ ๐ ๐ ,
2 replies5 likes
Varun Golhani
Founder @Gamesofchar...ย โขย 7m
Sab yaha Shark Tank dekhkr aa gaye .
my whole feed is filled up with youngsters asking for Funding.
๐ ๐ ๐