| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Could you please add a test or two on the new method? And rebase off of master as well, to fix potential CI issues |
Sorry, something went wrong.
|
Rebased on master and added 3 tests (1D, 2D, and empty array). All 194 tests pass locally including the new ones. |
Sorry, something went wrong.
|
Sorry I see a force push but it looks like it just contains your changes still |
Sorry, something went wrong.
|
yeah rebased on master and added the tests you asked for. thanks for checking. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adds a contains() method to ArrayBase to check whether a given index falls within array dimensions without accessing the element.
Closes #1247
let a = arr2(&[[1., 2.], [3., 4.]]);
assert!(a.contains((0, 1)));
assert!(!a.contains((2, 0)));