Skip to content

Instantly share code, notes, and snippets.

@mrprajesh
Created October 3, 2021 17:30
Show Gist options
  • Save mrprajesh/e4486c7623298dfc4b44b548d06ba47c to your computer and use it in GitHub Desktop.
Save mrprajesh/e4486c7623298dfc4b44b548d06ba47c to your computer and use it in GitHub Desktop.
Learning C++ Lambdas

This is a sample STL Usage

transform(
    v.begin(), 
    v.end(),
    r.begin(), 
    [](int i){return 2*i} 
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment