Answers for "foreach kotlin return value"

2

return@foreach not working kotlin

run breaker@ {
   list.forEach  { it ->
        if (true) {
           return@breaker
        }
    }
}
Posted by: Guest on October-14-2021

Browse Popular Code Answers by Language