by WalterBright · 4mo ago · 0 comments
for (auto&& [i, it] : vec | std::views::enumerate)
println ("{}:{}", ++i, it);
instead of: foreach (i, s; vec)
writeln(i, ": ", s);
well, what can I say?I am not counting characters, especially when AI completes typing for me.