4 ms·
> LINQ is to C#/.NET what <algorithm> is to C++. algorithms weren't really composable unlike LINQ. Ranges however are, see the examples here: https://mariusba
by jcelerier 4y ago
> LINQ is to C#/.NET what <algorithm> is to C++.
algorithms weren't really composable unlike LINQ.
Ranges however are, see the examples here: https://mariusbancila.ro/blog/2019/01/20/cpp-code-samples-before-and-after-ranges/ https://mariusbancila.ro/blog/2019/01/20/cpp-code-samples-be...
And they also heavily benefit from coroutines, basically allowing to make ranges from anything with e.g. std::generator<T>