NAME

PNI::Set - is a set of elements

SYNOPSIS

my $set = PNI::Set->new;

my $elem1 = PNI::Elem->new;
$set->add($elem1);

my $elem2 = PNI::Elem->new;
$set->add($elem2);

$set->list;    # ($elem1,$elem2)

ATTRIBUTES

elem

Hash of elements.

min

Minimum number of elements: default is 0.

max

Maximum number of elements: default is 0, which means infinity otherwise it would be the empty set.

METHODS

add

del

ids

list

my @elems = $set->list;

my $num_elems = scalar( $set->list );