This feature was just released recently: Allow loops in predicates by IGI-111 · Pull Request #4526 · FuelLabs/sway · GitHub . You would have to use the master branch for this.
This feature was just released recently: Allow loops in predicates by IGI-111 · Pull Request #4526 · FuelLabs/sway · GitHub . You would have to use the master branch for this.