I always forget about this sneaky use of .collect() https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=941df827e10703f2cbbb097a9ba5e50b
Dec 30, 2019, 11:32:16 AM [original]That's turning an iterator over results (computations that might fail), into a Vector (or any other collection), short-circuiting if an error is encountered.
Dec 30, 2019, 11:48:19 AM [original]here's a ~equivilent golang program https://play.golang.org/p/2iUK7o93Vvt
Dec 30, 2019, 11:48:20 AM [original]