pfultz2/Linq
View on GitHub ↗ ★ 671 C++
Linq for list comprehension in C++
3 mentions on Hacker News by 3 people: 1 story, 2 comments · first 2013-09-27 · latest 2014-05-20
20082026
-
Yes! I have been meaning to try it out, thanks for reminding. ...and then I discovered Linq https://github.com/pfultz2/Linq from your comment history. Expect movement in your karma from old posts :)
comment by srean · 2014-05-20 · in Interpreting when Compiling, or an Alternative Understanding of Lambdas in C++11 -
Or using [Linq]( https://github.com/pfultz2/Linq ): vector<int> squareVec(const vector<int>& v) { return LINQ(from(i, v) select(i*i)) | linq::to_container; } And also filtering out odd elements: vector<int> squareVecFiltered(const…
comment by pfultz2 · 2014-04-11 · in C++ – From goto to std::transform -
▲ 1
LINQ for C++ (gcc/clang/vc)story by dhruvbird · 2013-09-27 · 0 comments