Math::NumSeq::AllDigits -- digits of the integers
use Math::NumSeq::AllDigits; my $seq = Math::NumSeq::AllDigits->new; my ($i, $value) = $seq->next;
This sequence is the digits of the integers 0, 1, 2, etc,
0,1,2,3,4,5,6,7,8,9, 1,0, 1,1, 1,2, 1,3, 1,4, 1,5, 1,6,...
The default is decimal, or the radix parameter can select another base.
radix
The optional order parameter (a string) can control the order of the digits within each integer,
order
"forward" high to low, 3512 -> 3,5,1,2 "reverse" low to high, 3512 -> 2,1,5,3 "sorted" sorted, 3512 -> 1,2,3,5
See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes.
$seq = Math::NumSeq::Digit->new ()
$seq = Math::NumSeq::Digit->new (radix => $r, order => $o)
Create and return a new sequence object.
$value = $seq->ith($i)
Return the $i'th value from the sequence.
$i
$bool = $seq->pred($value)
Return true if $value occurs in the sequence, which simply means digits 0 to radix-1.
$value
Math::NumSeq, Math::NumSeq::All, Math::NumSeq::SqrtDigits, Math::NumSeq::DigitLength, Math::NumSeq::Runs, Math::NumSeq::ConcatNumbers
http://user42.tuxfamily.org/math-numseq/index.html
Copyright 2010, 2011, 2012 Kevin Ryde
Math-NumSeq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Math-NumSeq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.
To install Math::NumSeq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::NumSeq
CPAN shell
perl -MCPAN -e shell install Math::NumSeq
For more information on module installation, please visit the detailed CPAN module installation guide.