Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Pull Request type <!-- Please try to limit your pull request to one type; submit multiple pull requests if needed. --> Please check the type of change your PR introduces: - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no API changes) - [ ] Build-related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? To fetch an element at a particular index in a `Vec`, one has to use `at` Issue Number: N/A ## What is the new behavior? PR implements the `Index` trait to allow for using `[]` operator when fetching Vec elements: ``` let element_at_2 = a_vec[2]; ``` ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this does introduce a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR, such as screenshots of how the component looks before and after the change. -->
- Loading branch information