Math-Sequence

 view release on metacpan or  search on metacpan

lib/Math/Sequence.pm  view on Meta::CPAN

    $variable = $sig[0] if not defined $variable;

    my $self = {
        cached        => 1,
        var           => $variable,
        formula       => $parsed,
        current       => 0,
        current_value => $start,
        cache         => [$start],
    };
    return bless $self => $class;
}

=item next()

The next() method returns the next element of the sequence and advances the
iterator by one. This is the prefered method of walking down a sequence's
recursion.

=cut



( run in 0.253 second using v1.01-cache-2.11-cpan-3b35f9de6a3 )