Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
willybrauner
· 8mo ago · 0 comments
I create a new copy of the Set because the functions called during the loop might modify it by removing elements via cleanup functions. Without a copy, iterating directly on the Set could cause unpredictable behavior.
Comments
No comments yet.
Better HN