2 ms·As you wrote "the right approach would be", I'll add: That's exactly what the code does.by dividuum 5y agoAs you wrote "the right approach would be", I'll add: That's exactly what the code does.