How do I do a “break” or “continue” when in a functional loop within Kotlin?
There are other options other than what you are asking for that provide similar functionality. For example: You can avoid processing some values using filter: (like a continue) dataSet.filter { it % 2 == 0 }.forEach { // do work on even numbers } You can stop a functional loop by using takeWhile: (like a … Read more