Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active January 8, 2017 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/4f0b34f44a6c6e27474fe3f72f800eb3 to your computer and use it in GitHub Desktop.
Save deque-blog/4f0b34f44a6c6e27474fe3f72f800eb3 to your computer and use it in GitHub Desktop.
auto read_stock_by_id(std::string const& id) {
return read_stock_filtered_by(equaling(id, on(&stock_update::m_id)));
}
//Assembling the algorithm, the source and the pipeline
std::vector<std::string> fake_source = ... ;
auto result = algorithm(read_stock_by_id("EUR")(fake_source));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment