Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
List::Objects::WithUtiUserRContributedtPerliDocumen::Role::Array::Immutable(3)

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:

	 clear
	 set
	 pop push
	 shift unshift
	 delete	delete_when
	 insert
	 rotate_in_place
	 splice

       (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 <avenj@cobaltirc.org>

       Licensed	under the same terms as	Perl.

perl v5.24.1		   List::Objects::WithUtils::Role::Array::Immutable(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=List::Objects::WithUtils::Role::Array::Immutable&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help