> Array indexing must be properly tested, or the get method should be used to return an Option.
Fwiw, for anyone who’s dabbled with Haskell this is SOP. Any result that could be undefined is returned as a Maybe (Haskell’s version of Option). If this seems odd to anyone, understanding it in Haskell will probably help understand it better in Rust too:
http://learnyouahaskell.com/a-fistful-of-monads#getting-our-...
https://en.wikibooks.org/wiki/Haskell/Understanding_monads/M...