khalidabuhakmeh, I learned you can use the
break
inside aloop
to return a value. It feels strange coming to #Rust from #csharp. I would have expected to use thereturn
keyword, but I guess it makes sense.By the way, I'm taking the #JetBrains Academy course, so if you want to follow along, check it out.
Add comment