Open ahenshaw opened 17 hours ago
Would it be better to return a Result instead of an Option for the parts? Given the nature of the puzzles, we should be generating either a value or an error. Plus, I'd like to replace all of my unwraps with "?"s.
I'd like to replace all of my unwraps with "?"s
You can append .ok() to results to cast them to an option, then your ? will work.
.ok()
?
Would it be better to return a Result instead of an Option for the parts? Given the nature of the puzzles, we should be generating either a value or an error. Plus, I'd like to replace all of my unwraps with "?"s.