# NAME

Math::NumSeq::SelfLengthCumulative -- cumulative digit length of own values

# SYNOPSIS

`````` use Math::NumSeq::SelfLengthCumulative;
my \$seq = Math::NumSeq::SelfLengthCumulative->new (radix => 10);
my (\$i, \$value) = \$seq->next;``````

# DESCRIPTION

Cumulative digit length of values from the sequence itself,

``    1, 2, 3, 4, ... 9, 10, 12, 14, 16, ... 98, 100, 103, 106, ...``

Value 9 is 1 digit, so add 1 to give 10. Then 10 is 2 digits so add 2 to give 12, etc.

The default is decimal digits, or optional `radix` parameter can give another base. For example `radix => 2` binary

``    1, 2, 4, 7, 10, 14, 18, 23, 28, 33, 39, 45, ...``

The effect in all cases is to step by 1s up to 10, then by 2s up to 100, then 3s up to 1000, etc, in whatever `radix`. This is similar to DigitLengthCumulative, but its lengths are from i whereas here they're from the values.

# FUNCTIONS

See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes.

`\$seq = Math::NumSeq::SelfLengthCumulative->new ()`
`\$seq = Math::NumSeq::SelfLengthCumulative->new (radix => \$r, to_radix => \$t)`

Create and return a new sequence object.

`\$bool = \$seq->pred(\$value)`

Return true if `\$value` occurs in the sequence.