Y
Hacker News
new
|
ask
|
show
|
jobs
by
WalterBright
13 days ago
To clarify,
foreach (s; vec)
works if you don't need the index. To be able to modify s in place:
foreach (ref s; vec) s = "replacement";
1 comments
xigoi
13 days ago
I was talking about Go. I know you don’t need the index in D.
link