Acme-Playpen
view release on metacpan or search on metacpan
lib/Tupelo/Munge.pm view on Meta::CPAN
=head1 SYNOPSIS
use Tuple::Munge qw(pure_tuple constant_tuple variable_tuple);
$tuple = pure_tuple(\$s, \@a, \%h, \&c);
$tuple = constant_tuple(\$s, \@a, \%h, \&c);
$tuple = variable_tuple(\$s, \@a, \%h, \&c);
use Tuple::Munge
qw(tuple_mutable tuple_length tuple_slot tuple_slots);
if(tuple_mutable($tuple)) { ...
$len = tuple_length($tuple);
$ref = tuple_slot($tuple, 3);
@refs = tuple_slots($tuple);
use Tuple::Munge qw(tuple_set_slot tuple_set_slots tuple_seal);
tuple_set_slot($tuple, 3, \$s);
tuple_set_slots($tuple, \$s, \@a, \%h, \&c);
tuple_seal($tuple);
=head1 DESCRIPTION
lib/Tupelo/Munge.pm view on Meta::CPAN
use warnings;
use strict;
use XSLoader;
our $VERSION = "0.000";
use parent "Exporter";
our @EXPORT_OK = qw(
pure_tuple constant_tuple variable_tuple
tuple_mutable tuple_length tuple_slot tuple_slots
tuple_set_slot tuple_set_slots tuple_seal
);
XSLoader::load(__PACKAGE__, $VERSION);
=head1 FUNCTIONS
=head2 Construction
=over
lib/Tupelo/Munge.pm view on Meta::CPAN
=head2 Examination
=over
=item tuple_mutable(TUPLE)
I<TUPLE> must be a reference to a tuple. Returns a truth value indicating
whether the tuple is mutable.
=item tuple_length(TUPLE)
I<TUPLE> must be a reference to a tuple. Returns the number of slots
that the tuple currently has.
=item tuple_slot(TUPLE, INDEX)
I<TUPLE> must be a reference to a tuple. Returns the slot value (either a
reference or undefined) in the tuple's slot identified by the zero-based
index I<INDEX>. C<die>s if the index is out of bounds (less than zero,
or greater than or equal to the number of slots).
( run in 0.251 second using v1.01-cache-2.11-cpan-65fba6d93b7 )