List::Range::Set - Set of the range
use List::Range; use List::Range::Set; my $set = List::Range::Set->new('MySet' => [ List::Range->new(name => "A", upper => 0), List::Range->new(name => "B", lower => 1, upper => 10), List::Range->new(name => "C", lower => 11, upper => 20), List::Range->new(name => "D", lower => 21, upper => 30), List::Range->new(name => "E", lower => 31, upper => 40), List::Range->new(name => "F", lower => 41, upper => 50), ]); $set->includes(0); # => true $set->includes(1); # => true $set->includes(11); # => true $set->includes(31); # => true $set->includes(50); # => true $set->includes(51); # => false
List::Range::Set provides a set of range. And a List::Range::Set object is a List::Range object.
Create a new List::Range::Set object.
Returns the ranges of the set.
List::Range
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
karupanerura <karupa@cpan.org>
To install List::Range, copy and paste the appropriate command in to your terminal.
cpanm
cpanm List::Range
CPAN shell
perl -MCPAN -e shell install List::Range
For more information on module installation, please visit the detailed CPAN module installation guide.