Medium
val ints = listOf(5, -1, 2, 5, -5, -2)
val sum = ints.filter { it > 0 }.drop(1).sum()
print(sum)
What does the console show?
Author: W3D TeamStatus: PublishedQuestion passed 510 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Kotlin