Math::N...CountLow(3)

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

πŸ’– 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 $i written in "radix". no scrolling, no waiting, just jump straight to the answer bestie 🧚
  • "$bool = $seq->pred($value)" β€” return true if $value might 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::NumSeq
  • Math::NumSeq::DigitCount
  • Math::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