|
Array Array::slice(int p_begin, int p_end, int p_step, bool p_deep) const { // like python, but inclusive on upper bound
|
|
Array Array::slice(int p_begin, int p_end, int p_step, bool p_deep) const { // like python, but inclusive on upper bound
|
|
p_begin = Array::_fix_slice_index(p_begin, size(), -1); // can't start out of range
|
|
p_begin = Array::_fix_slice_index(p_begin, size(), -1); // can't start out of range
|
|
p_end = Array::_fix_slice_index(p_end, size(), 0);
|
|
p_end = Array::_fix_slice_index(p_end, size(), 0);
|