After functional programming has spread, we often hear that using loops is considered bad practice. The following example comes from CppCoreGuidelines, I wonder if should we