c6cefb1b79
The same is done for `Vector` (and thus `Packed*Array`). `begin` and `end` can now take any value and will be clamped to `[-size(), size()]`. Negative values are a shorthand for indexing the array from the last element upward. `end` is given a default `INT_MAX` value (which will be clamped to `size()`) so that the `end` parameter can be omitted to go from `begin` to the max size of the array. This makes `slice` works similarly to numpy's and JavaScript's. |
||
---|---|---|
.. | ||
test_command_queue.h | ||
test_list.h | ||
test_local_vector.h | ||
test_lru.h | ||
test_oa_hash_map.cpp | ||
test_oa_hash_map.h | ||
test_ordered_hash_map.h | ||
test_paged_array.h | ||
test_vector.h |