Math::N...CountLow(3)
π Math::NumSeq::DigitCountLow β the "how many lil digits are chillin' at the end" page π
okay so bestie, this is a Perl manpage from the User Contributed Perl Documentation collection, and it's literally about counting digits. no cap. let's get into it π«Ά
β¨ NAME β¨
Math::NumSeq::DigitCountLow β count of given low digits π
πΈ SYNOPSIS πΈ
the whole vibe in four lines:
use Math::NumSeq::DigitCountLow;
my $seq = Math::NumSeq::DigitCountLow->new (radix => 10,
digit => 9);
my ($i, $value) = $seq->next;
π¦ DESCRIPTION π¦
so like. this counts how many of a given digit are at the low end of $i when $i is written out in a given radix. that's the whole thing. that's the assignment. π
the default is to count how many low 9s in decimal. so for example i=9599 has value 2, because there's two consecutive 9s at the low end. iconic behaviour honestly, the 9s said "we're ending this number together" and they did πβ¨
π FUNCTIONS π
peep "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes, iykyk.
"$seq = Math::NumSeq::DigitCountLow->new (radix => $r, digit => $d)"β create and return a new sequence object. make a whole new baby sequence, slay πΌ
also: "digit" can be -1 to mean digit radix-1, i.e. the highest digit in the radix. so it's the "just give me the biggest one" shortcut, we love a convenience π
π Random Access
"$value = $seq->ith($i)"β return how many of the given"digit"is in$iwritten in"radix". no scrolling, no waiting, just jump straight to the answer bestie π§"$bool = $seq->pred($value)"β return true if$valuemight occur as a digit count, which means simply"$value>=0". that's it. that's the whole test. anything zero or up could theoretically show up, anything negative is a no π
β SEE ALSO β
the friend group:
Math::NumSeqMath::NumSeq::DigitCountMath::NumSeq::DigitCountHigh
π HOME PAGE π
<http://user42.tuxfamily.org/math-numseq/index.html>
π LICENSE π
okay this part is the serious part, so read it fr fr, not skimming energy
Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019, 2020 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/>.
aaaand that's the page π this one's running on perl v5.42.0, dated 2025-07-25, and it's part of the Math-NumSeq crew. mwah, bye bestie π«ΆπΈ
π¦ 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