1Math::NumSeq::All(3)  User Contributed Perl Documentation Math::NumSeq::All(3)
2
3
4

NAME

6       Math::NumSeq::All -- all integers
7

SYNOPSIS

9        use Math::NumSeq::All;
10        my $seq = Math::NumSeq::All->new;
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       The non-negative integers 0,1,2,3,4, etc.
15
16       As a module this is trivial, but it helps put all integers into things
17       using NumSeq.
18

FUNCTIONS

20       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
21       classes.
22
23       "$seq = Math::NumSeq::All->new ()"
24           Create and return a new sequence object.
25
26       "$i = $seq->seek_to_value($value)"
27           Move the current i so that "next()" will give $value on the next
28           call, or ceil($value) if $value is an integer.
29
30   Random Access
31       "$value = $seq->ith($i)"
32           Return $i.
33
34       "$bool = $seq->pred($value)"
35           Return true if $value is an integer.
36
37       "$i = $seq->value_to_i_ceil($value)"
38       "$i = $seq->value_to_i_floor($value)"
39       "$i = $seq->value_to_i_estimate($value)"
40           Return $value rounded to the next higher or lower integer.
41

SEE ALSO

43       Math::NumSeq, Math::NumSeq::Even, Math::NumSeq::Odd
44

HOME PAGE

46       <http://user42.tuxfamily.org/math-numseq/index.html>
47

LICENSE

49       Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019 Kevin Ryde
50
51       Math-NumSeq is free software; you can redistribute it and/or modify it
52       under the terms of the GNU General Public License as published by the
53       Free Software Foundation; either version 3, or (at your option) any
54       later version.
55
56       Math-NumSeq is distributed in the hope that it will be useful, but
57       WITHOUT ANY WARRANTY; without even the implied warranty of
58       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
59       General Public License for more details.
60
61       You should have received a copy of the GNU General Public License along
62       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
63
64
65
66perl v5.32.0                      2020-07-28              Math::NumSeq::All(3)
Impressum