https://kotlinlang.org logo
j

jstuyts-squins

11/28/2017, 2:56 PM
I am an anti-
break
person, so I usually use
while (!shouldStop)
. But there is no standard
loop
. It may be possible to write one though. An inline function with a function parameter may get the job done