Looping through a list of items, and doing different operations based on their value is an extremely common occurrence, and you’d hard pressed to find a codebase that doesn’t use that pattern somewhere.
I feel attacked. I'm a DSP engineer and I haven't implemented an analog filter since I graduated. If we got into detail on RC filter gain and phase shift I'd fail. Do I have to give my EE degree back?