| 1214 | // Both pos and end can be negative to count from the end: -1 is the last item in the array. |
| 1215 | template<typename ELEM_> |
| 1216 | Array<ELEM_> Array_obj<ELEM_>::slice(int inPos, Dynamic end) |
| 1217 | { |
| 1218 | int e = end==null() ? length : end->__ToInt(); |
| 1219 | Array_obj *result = new Array_obj(0,0); |
| 1220 | hx::ArrayBase::Slice(result,inPos,(int)e); |
| 1221 | return result; |
| 1222 | } |
| 1223 | |
| 1224 | template<typename ELEM_> |
| 1225 | Array<ELEM_> Array_obj<ELEM_>::splice(int inPos, int len) |
no test coverage detected