LINQ for C++ is an attempt to bring LINQ-like list manipulation to C++11.
This release includes just the source code.
What's new in this release:
Many thanks d95danb for providing the bulk of this functionality and to mariusbancila for doing an excellent job on the documentation (as well as providing functionality)
This is a sample on how to use cpplinq:
See documentation for more details.
This release includes just the source code.
What's new in this release:
- singleton() added
- generate() added
- to_opt() added
- pairwize() added
- zip_with() added
Many thanks d95danb for providing the bulk of this functionality and to mariusbancila for doing an excellent job on the documentation (as well as providing functionality)
This is a sample on how to use cpplinq:
#include "cpplinq.hpp"int computes_a_sum () { usingnamespace cpplinq; int ints[] = {3,1,4,1,5,9,2,6,5,4}; // Computes the sum of all even numbers in the sequence abovereturn from_array (ints) >> where ([](int i) {return i%2 ==0;}) // Keep only even numbers>> sum () // Sum remaining numbers ; }
See documentation for more details.