Math::N...outDigit(3)
π NAME π
Math::NumSeq::RadixWithoutDigit β bestie, it's literally just integers without a given digit. That's the whole vibe. π
β¨ SYNOPSIS β¨
use Math::NumSeq::RadixWithoutDigit;
my $seq = Math::NumSeq::RadixWithoutDigit->new;
my ($i, $value) = $seq->next;
okay so that's the entire glow-up right there, three lines, no cap π«Ά
πΈ DESCRIPTION πΈ
So picture this: you want all the integers that do not contain some digit you picked. That's it. That's the sequence. π
The classic example, and honestly the one that eats every time: decimal without 9s. So you get 0 to 8, then 10 to 18, then 20 to 28, ... , then 80 to 88, and then 100, etc. Notice how every time we hit the forbidden digit we just... skip past it like it said something weird in the group chat. iconic behaviour fr fr π¦
π FUNCTIONS π
lowkey the most important thing here: for behaviour common to all sequence classes, go read "FUNCTIONS" in Math::NumSeq. That's the shared lore, bestie, don't skip it. π
$seq = Math::NumSeq::RadixWithoutDigit->new (radix => $r, digit => $d)β makes you a brand new sequence object and hands it to you. You're welcome. π
π₯ Random Access π₯
$value = $seq->ith($i)β gimme the $i'th number that doesn't have the digit. Just reach in and grab it, no scrolling through the whole sequence required. main character energy. β¨$bool = $seq->pred($value)β returns true if $value doesn't have the givendigit. Simple vibe check, in and out. β
π SEE ALSO π
- Math::NumSeq
π HOME PAGE π
<http://user42.tuxfamily.org/math-numseq/index.html>
go say hi, it's giving cozy little homepage π‘
π LICENSE π
Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
okay so legal stuff, but like, we keep it exact because that's the rule π―
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/>.
and that's the whole page bestie π«Ά this little doc was served up by perl v5.42.0 on 2025-07-25, and the manual name it lives under is User Contributed Perl Documentation β which, honestly? slay. periodt. π β¨
π¦ where this page comes from
- fedora 43: perl-Math-NumSeq 75-11.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms