1Math::NumSeq::AllDigitsU(s3e)r Contributed Perl DocumentaMtaitohn::NumSeq::AllDigits(3)
2
3
4

NAME

6       Math::NumSeq::AllDigits -- digits of the integers
7

SYNOPSIS

9        use Math::NumSeq::AllDigits;
10        my $seq = Math::NumSeq::AllDigits->new;
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       This sequence is the digits of the integers 0, 1, 2, etc,
15
16           0,1,2,3,4,5,6,7,8,9, 1,0, 1,1, 1,2, 1,3, 1,4, 1,5, 1,6,...
17           starting i=0
18
19       The default is decimal, or the "radix" parameter can select another
20       base.
21
22       The optional "order" parameter (a string) can control the order of the
23       digits of each integer,
24
25           "forward"      high to low, 3512 -> 3,5,1,2
26           "reverse"      low to high, 3512 -> 2,1,5,3
27           "sorted"       sorted, 3512 -> 1,2,3,5
28

FUNCTIONS

30       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
31       classes.
32
33       "$seq = Math::NumSeq::Digit->new ()"
34       "$seq = Math::NumSeq::Digit->new (radix => $radix, order => $str)"
35           Create and return a new sequence object.
36
37   Random Access
38       "$value = $seq->ith($i)"
39           Return the $i'th value from the sequence.
40
41       "$bool = $seq->pred($value)"
42           Return true if $value occurs in the sequence, which simply means
43           digits 0 to radix-1.
44

SEE ALSO

46       Math::NumSeq, Math::NumSeq::All
47
48       Math::NumSeq::SqrtDigits, Math::NumSeq::DigitLength,
49       Math::NumSeq::Runs, Math::NumSeq::ConcatNumbers
50

HOME PAGE

52       <http://user42.tuxfamily.org/math-numseq/index.html>
53

LICENSE

55       Copyright 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
56
57       Math-NumSeq is free software; you can redistribute it and/or modify it
58       under the terms of the GNU General Public License as published by the
59       Free Software Foundation; either version 3, or (at your option) any
60       later version.
61
62       Math-NumSeq is distributed in the hope that it will be useful, but
63       WITHOUT ANY WARRANTY; without even the implied warranty of
64       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
65       General Public License for more details.
66
67       You should have received a copy of the GNU General Public License along
68       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
69
70
71
72perl v5.34.1                      2022-06-06        Math::NumSeq::AllDigits(3)
Impressum