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::IdGenerator::Mock - Generator of increasing identifiers

Configuration

       first_id
           First number to start from. Set to 0 by default (zero-based numbering).

perl v5.40.0                                       2025-01-17                   Catmandu::IdGenerator::Mock(3pm)

Name

       Catmandu::IdGenerator::Mock - Generator of increasing identifiers

See Also

       This Catmandu::IdGenerator generates identifiers based on the sequence of natural numbers.

Synopsis

           use Catmandu::IdGenerator::Mock;

           my $x = Catmandu::IdGenerator::Mock->new(first_id => 10);

           for (1..100) {
              printf "id: %s\n" m $x->generate;
           }

See Also