4 ms·
> they are not ergonomic because we have to pass begin and end as arguments, which also means they cannot be chained. C++20: for (int i : ints | std::views:
by krona 3y ago
> they are not ergonomic because we have to pass begin and end as arguments, which also means they cannot be chained.
C++20:
for (int i : ints | std::views::filter(even) | std::views::transform(square))
std::cout << i << ' ';