Set::Scalar::ValuedUniverse - universes for valued set members


Set-Scalar documentation Contained in the Set-Scalar distribution.

Index


Code Index:

NAME

Top

Set::Scalar::ValuedUniverse - universes for valued set members

SYNOPSIS

Top

Do not use directly.

DESCRIPTION

Top

There are only two guaranteed interfaces, both sort of indirect.

The first one is accessing the universe of a valued set:

    $valued_set->universe

This contains the members of the universe

    $valued_set->universe->members

of the $valued_set.

The second supported interface is displaying universes of valued sets.

    print $valued_set->universe, "\n";

This will display the members of the valued set inside square brackets: [], as opposed to valued sets, which have their members shown inside parentheses: ().

AUTHOR

Top

Jarkko Hietaniemi <jhi@iki.fi>


Set-Scalar documentation Contained in the Set-Scalar distribution.

package Set::Scalar::ValuedUniverse;

use strict;
local $^W = 1;

use vars qw(@ISA);

@ISA = qw(Set::Scalar::Virtual Set::Scalar::Base);

use Set::Scalar::Virtual;

my $UNIVERSE = __PACKAGE__->new;

sub SET_FORMAT        { "[%s]" }

sub universe {
    my $self = shift;

    return $UNIVERSE;
}

1;