qq about returns and jumps. I have the following c...
# stdlib
j
qq about returns and jumps. I have the following code that I want to break from the for loop, but it isn’t working
Copy code
items.forEachIndexed { i, item ->
        if (item.flag? == true) {
            // Do some logic then break/return because you found what you needed
            return@forEachIndexed
        }
}
Any help on why my return isn’t working?