Math::N...outDigit(3)

πŸ“¦
version 75 Β· 2 versions
, in fedora 43

πŸ’– 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 given digit. 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