I suppose I would want whichever has the best performance. Without testing, I'm not sure which one would be better. Thoughts?

I had been fighting with the map results because I didn't realize there was an easy way to get just the array.

I'm actually not having much luck with your original function (and I tried some variations on it). It just kept outputting the original array without applying the function. I tried it in main also (without being in a function) without much luck either.

Reply via email to