Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active March 24, 2016 22:40
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 picanumber/7f46dadbb1c150c4dd61 to your computer and use it in GitHub Desktop.
Save picanumber/7f46dadbb1c150c4dd61 to your computer and use it in GitHub Desktop.
int main()
{
std::string acc;
auto k = fld::foldr<JoinAc>(
std::string(" < in the bush >"),
10,
std::string(" < bird in the hand, is worth > "),
1,
acc);
using namespace std::rel_ops;
for (auto&& state : k)
{
std::cout << "computed value so far : " << state << std::endl;
}
constexpr auto mm = fld::foldr<Max>(11, 2, 5, 2, 4).yield();
std::cout << "\nmax is " << mm << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment