NAME
List::Objects::WithUtils::Role::Array::Immutable - Immutable array behavior
SYNOPSIS
# Via List::Objects::WithUtils::Array::Immutable ->use List::Objects::WithUtils 'immarray';my $array = immarray(qw/ a b c /);$array->push('d'); # dies
DESCRIPTION
This role adds immutable behavior to List::Objects::WithUtils::Role::Array consumers.
The following methods are not available and will throw an exception:
clearsetpop pushshift unshiftdelete delete_wheninsertrotate_in_placesplice
(The backing array is also marked read-only.)
See List::Objects::WithUtils::Array::Immutable for a consumer implementation that also pulls in List::Objects::WithUtils::Role::Array & List::Objects::WithUtils::Role::Array::WithJunctions.
AUTHOR
Jon Portnoy <[email protected]>
Licensed under the same terms as Perl.