07/07/2022, 2:11 PM
Function don't exit with return kotlin I wrote this function with recursion in Kotlin, it's just for academic purposes. But I have a problem, when the condition is true, the execution is not interrupted. It's as if it ignores the return command and keeps iterating. I have seen it in debug, that when the condition is true it goes through there and then continues. Anyone knows how to solve this? In this capture, see the debugger in the return true statement, but the function don't exit. <a href="