Yeah, I think unless I really needed a speed boost, I’d fall back on nice readable loops for…
Jackson Bates

Code maintainability (which has a lot to do with readability) is often more important than performance, so that’s a tradeoff I usually make.

Though, in this case you could easily have both by simply including a big comment in the function that explains what’s going on.

Like what you read? Give Jim Nasby a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.