logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::Bind::iterate - a binder iterates fixes in a loop

Configuration

start
       Start value of the iterator.

   end
       End value of the iterator.

   step
       Increase the interator with this value for every step.

       var

       Optional variable holding the value of the current step

Description

       The list binder will iterate over all the elements in a list and fixes the values in context of that
       list.

Name

       Catmandu::Fix::Bind::iterate - a binder iterates fixes in a loop

See Also

       Catmandu::Fix::Bind , Catmandu::Fix::list , Catmandu::Fix::with ,

perl v5.40.0                                       2025-01-17                  Catmandu::Fix::Bind::iterate(3pm)

Synopsis

            # Create:
            #   numbers = [1,2,3,4,5,6,7,8,9,10]
            do iterate(start:1, end: 10, step: 1, var: i)
               copy_field(i,numbers.$append)
            end

See Also