| Set-Scalar documentation | Contained in the Set-Scalar distribution. |
Set::Scalar::ValuedUniverse - universes for valued set members
Do not use directly.
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: ().
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;