| 1284 | template<typename ELEM_> |
| 1285 | template<class TO> |
| 1286 | Array<TO> Array_obj<ELEM_>::map(MappingFunc<TO> inFunc) |
| 1287 | { |
| 1288 | auto result = Array_obj<TO>::__new(length, 0); |
| 1289 | for (int i = 0; i < length; i++) |
| 1290 | result->__unsafe_set(i, inFunc(__unsafe_get(i))); |
| 1291 | return result; |
| 1292 | } |
| 1293 | #else |
| 1294 | template<typename ELEM_> |
| 1295 | cpp::VirtualArray Array_obj<ELEM_>::map(MappingFunc inFunc) |
no test coverage detected