++ed by:
Kevin Ryde
and 1 contributors

# NAME

Math::NumSeq::Xenodromes -- integers with all digits unique

# SYNOPSIS

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

# DESCRIPTION

This is integers which have all digits different,

``````    0, ..., 9, 10, 12, 13, ..., 19, 20, 21, 23, 24, ...
# starting i=1 value=0``````

For example 11 is not in the sequence because it has digit 1 appearing twice.

This is a finite sequence since the maximum value with distinct digits is 9876543210.

The optional `radix` parameter controls the base used for the digits (default decimal). In binary for example there's just three values, 0, 1, 2.

# FUNCTIONS

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

`\$seq = Math::NumSeq::Xenodromes->new ()`
`\$seq = Math::NumSeq::Xenodromes->new (radix => \$integer)`

Create and return a new sequence object.

## Random Access

`\$value = \$seq->ith(\$i)`

Return the `\$i`'th xenodrome, or `undef` if `\$i` is beyond the end of the sequence.

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

Return true if `\$value` is a xenodrome, ie. an integer with all digits distinct.

http://user42.tuxfamily.org/math-numseq/index.html

Copyright 2012, 2013, 2014, 2016, 2019 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/>.