Math::NumSeq::All(3)
π Math::NumSeq::All π
okay bestie, welcome to Math::NumSeq::All, from the User Contributed Perl Documentation collection. it's literally just... all the integers. that's it. that's the module. and honestly? iconic. π
β¨ SYNOPSIS β¨
use Math::NumSeq::All;
my $seq = Math::NumSeq::All->new;
my ($i, $value) = $seq->next;
no cap, that's the whole vibe check. π¦
πΈ DESCRIPTION πΈ
it's the non-negative integers: 0,1,2,3,4, etc. π
as a module it's lowkey trivial, like there is genuinely nothing going on here β but the way that it helps you slot all integers into stuff that uses NumSeq? that's the whole point. it's the main character of "just give me everything, thanks." π
π FUNCTIONS π
peep "FUNCTIONS" in Math::NumSeq for the behaviour that's common to literally every sequence class, bestie.
$seq = Math::NumSeq::All->new ()β makes you a brand new sequence object and hands it over. slay. β¨$i = $seq->seek_to_value($value)β nudges the currentiso thatnext()will give you$valueon the next call, orceil($value)if$valueis an integer. π§
π¦ Random Access π¦
$value = $seq->ith($i)β returns$i. yes literally just$i. no notes. π$bool = $seq->pred($value)β returns true if$valueis an integer. that's the entire personality. π$i = $seq->value_to_i_ceil($value)$i = $seq->value_to_i_floor($value)$i = $seq->value_to_i_estimate($value)
these three all return $value rounded to the next higher or lower integer. rounding girlies, rise. π
β SEE ALSO β
Math::NumSeqMath::NumSeq::EvenMath::NumSeq::Odd
go read the whole friend group, fr fr. π«Ά
π HOME PAGE π
<http://user42.tuxfamily.org/math-numseq/index.html>
π LICENSE π
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/>.
β οΈ okay real talk for a sec β that "WITHOUT ANY WARRANTY" bit is not a vibe, it's a warning. no promises, bestie. read the license properly. π
and that's a wrap, gorgeous π this page is perl v5.42.0, dated 2025-07-25 β mwah, kisses, go forth and enumerate every integer that has ever existed ππ₯π
π¦ 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