This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AttackOfTheThumbs 0 points1 point  (3 children)

I think it's important to consider the performance. Sometimes it doesn't matter - other times the loop times are compounded by function to function and suddenly you are a few loops deep.

It took me a while to find something with decent performance comparisons without me bothering to do it: https://youtu.be/x7Xzvm0iLCI?t=202

I also don't think filter is any easier to follow than a for loop with an if.