MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / filter

Method filter

include/Array.h:1234–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232
1233template<typename ELEM_>
1234Array<ELEM_> Array_obj<ELEM_>::filter(FilterFunc inFunc)
1235{
1236 Array_obj *result = new Array_obj(0,0);
1237 for(int i=0;i<length;i++)
1238 if (inFunc(__unsafe_get(i)))
1239 result->push(__unsafe_get(i));
1240 return result;
1241}
1242
1243template<typename ELEM_>
1244Array<ELEM_> Array_obj<ELEM_>::__SetSizeExact(int inLen)

Callers

nothing calls this directly

Calls 2

__unsafe_getFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected