βœ… 3nigmatico πŸ”° is a user on niu.moe. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
βœ… 3nigmatico πŸ”° @robots

Oh boy, C++ now has iterators and some kind of lambda expression...

<algorithm>

std::string test = "Hello";
std::for_each(test.begin(),test.end(),[&](char c){
std::cout << c;
});

std::cout << std::endl;

Β· 0 Β· 0

@robots C++ had lambdas seven years ago