this post was submitted on 22 Nov 2023
295 points (100.0% liked)
196
16442 readers
2620 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
but if you do it as a for loop it would be slower
Unless you're looping over more than a million elements, that's a poor excuse.
or you're doing this a million times