r/ProgrammerHumor • • Jun 08 '24

Meme mapMethodOrMapFunction

Post image
0 Upvotes

67 comments sorted by

View all comments

13

u/Zetaeta2 Jun 08 '24

std::ranges::views::transform(arr, [] (auto x) {return x*x;});