Dhghomon / rust-fsharp

Rust - F# - Rust reference
MIT License
239 stars 14 forks source link

Make an example more idiomatic #22

Open ChayimFriedman2 opened 3 years ago

ChayimFriedman2 commented 3 years ago

.unwrap() is not a good sign (and optimizes poorly, though I didn't check this example specifically). if let is more appropriate here (though match will do too).