1Math::NumSeq::PalindromUesse(r3)Contributed Perl DocumenMtaatthi:o:nNumSeq::Palindromes(3)
2
3
4

NAME

6       Math::NumSeq::Palindromes -- palindrome numbers like 15351
7

SYNOPSIS

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

DESCRIPTION

14       The palindrome numbers which read the same backwards and forwards.
15
16           0 .. 9, 11, 22, ..., 99, 101, 111, 121, ... 191, 202, ...
17           # starting i=1 value=0
18
19       The default is decimal or the "radix" parameter can select another
20       base.
21

FUNCTIONS

23       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
24       classes.
25
26       "$seq = Math::NumSeq::Palindromes->new ()"
27       "$seq = Math::NumSeq::Palindromes->new (radix => $r)"
28           Create and return a new sequence object.
29
30   Iterating
31       "$seq->seek_to_i($i)"
32           Move the current sequence position to $i.  The next call to next()
33           will return $i and corresponding value.
34
35   Random Access
36       "$value = $seq->ith($i)"
37           Return the $i'th palindrome number.
38
39       "$bool = $seq->pred($value)"
40           Return true if $value is a palindrome, ie. its digits read the same
41           forwards and backwards (in the given "radix").
42

SEE ALSO

44       Math::NumSeq, Math::NumSeq::Repdigits
45

HOME PAGE

47       <http://user42.tuxfamily.org/math-numseq/index.html>
48

LICENSE

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