MYDan::Node::Integer - Integer Range
use MYDan::Node::Integer; my @a = ( 1, 3, 5 .. 10 ); my $a = MYDan::Node::Integer->new()->load( \@a ); my %b = ( 1 => 1, 2 => 1, 4 => 1, 6 => 1 ); my $b = $a->new()->load( \%b ); my $c = $a->new()->load( 4, 10 ); my $d = $a->new()->load( $c ); $a->add( $b ); $c->intersect( \%b );
Extracts a set of elements from a supported object.
Loads from a supported object, or a pair of delimiting elements that indicate a contiguous range.
Returns the smallest element in range
Returns the largest element in range
Returns number of elements in range.
Returns boundary pairs if skip is set, values of all elements otherwise.
Values of @index.
Indices of @value.
Returns an object that contains the inclusive subset within two indices.
( These methods modify the invoking object. )
Adds a supported object to object.
Subtracts a supported object from object.
Intersects with a supported object.
Takes symmetric difference with a supported object.
Insert elements delimited by two values. Returns invoking object.
Remove elements delimited by two values. Returns object of removed elements.
To install MYDan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MYDan
CPAN shell
perl -MCPAN -e shell install MYDan
For more information on module installation, please visit the detailed CPAN module installation guide.