ExamVeda
Login
Home
This question belongs to Computer Science Kotlin Program
Kotlin Program
?

The code below is expected to display the numbers from 1 to 10, but it does not. Why?
val seq = sequence { yieldAll(1..20) }
  .filter { it < 11 }
  println(seq)

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.