We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maybe this is possible already, but I haven't found out how.
If I have a
auto my_elements = linq::from().where(...).select(..);
how can I iterate over those?
Currently I am doing
for (auto el: my_elements.to_vector())
but that seems inefficient. Is there a way to return an iterator pair from my_elements?
The text was updated successfully, but these errors were encountered:
Use the for_each function on interactive:
for_each
linq::from(people) .select([](Person& person){ return person.name; }) .for_each([](std::string& name){ std::cout << name << std::endl; });
On Feb 18, 2016, at 4:03 AM, "PhilippC" [email protected] wrote: maybe this is possible already, but I haven't found out how. If I have a auto my_elements = linq::from().where(...).select(..); how can I iterate over those? Currently I am doing for (auto el: my_elements.to_vector()) but that seems inefficient. Is there a way to return an iterator pair from my_elements? — Reply to this email directly or view it on GitHub.
On Feb 18, 2016, at 4:03 AM, "PhilippC" [email protected] wrote:
— Reply to this email directly or view it on GitHub.
Sorry, something went wrong.
No branches or pull requests
maybe this is possible already, but I haven't found out how.
If I have a
auto my_elements = linq::from().where(...).select(..);
how can I iterate over those?
Currently I am doing
for (auto el: my_elements.to_vector())
but that seems inefficient. Is there a way to return an iterator pair from my_elements?
The text was updated successfully, but these errors were encountered: