Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2014 (2)
20082026
  1. 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 :)
  2. 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