Closed rohanaceres closed 4 years ago
Hi,
How can I selectMany with objects? For example:
selectMany
auto concatInnerList = from(*myObj) .selectMany([](const MyObj& myObjTemp) { return myObjTemp.innerList; }) .toStdArray();
myObj is a std::vector<MyObject> which contains an inner list object std::vector.
myObj
std::vector<MyObject>
Hi @rohanaceres, try return from(myObjTemp.innerList);
return from(myObjTemp.innerList);
You can find all examples in test folder: https://github.com/k06a/boolinq/blob/master/test/SelectManyTest.cpp#L29
test
Hi,
How can I
selectMany
with objects? For example:myObj
is astd::vector<MyObject>
which contains an inner list object std::vector