#Try-Except

4 messages · Page 1 of 1 (latest)

naive shale
#

Which method would produce the exception?

#

Oh, so this is the thing where it'll execute a branch if the loop isn't broken from...

#

Well, you could use an Iterator function, such as find, try_fold or try_for_each, then use Result/Option ::or_else on the resulting value to most cleanly emulate that...

#

I'm kind of not following the control flow of the Python code, or what's producing exceptions, because that's something Rust doesn't have...