[core] Replace for_each with for loop

parent 0f0cdb41
Pipeline #98798 passed with stages
in 9 minutes and 15 seconds