Data-ArrayList
view release on metacpan or search on metacpan
Returns a list iterator (Data::ArrayList::ListIterator) of the elements
in this list (in proper sequence), starting at the specified position
(*default is 0*) in this list. The specified index indicates the first
element that would be returned by an initial call to next. An initial
call to previous would return the element with the specified index minus
one.
Iterator will die with "ConcurrentModification" if the parent list has
been *structurally modified*. Structural modifications are those that
change the size of the list, or otherwise perturb it in such a fashion
that iterations in progress may yield incorrect results.
subList
my $sl = $dal->subList( $rangeFrom, $rangeTo );
Returns a view of the portion of this list between the specified
"rangeFrom", inclusive, and "rangeTo", exclusive. (If "rangeFrom" and
"rangeTo" are equal, the returned list is empty.) The returned list is
backed by this list, so non-structural changes in the returned list are
reflected in this list, and vice-versa. The returned list supports all
of the optional list operations supported by this list.
lib/Data/ArrayList.pm view on Meta::CPAN
my $li = $dal->listIterator( $initialPosition );
Returns a list iterator (L<Data::ArrayList::ListIterator>) of the elements in
this list (in proper sequence), starting at the specified position
(I<default is 0>) in this list. The specified index indicates the first element
that would be returned by an initial call to next. An initial call to previous
would return the element with the specified index minus one.
Iterator will die with C<ConcurrentModification> if the parent list has been
I<structurally modified>. Structural modifications are those that change the
size of the list, or otherwise perturb it in such a fashion that iterations in
progress may yield incorrect results.
=head2 subList
my $sl = $dal->subList( $rangeFrom, $rangeTo );
Returns a view of the portion of this list between the specified C<rangeFrom>,
inclusive, and C<rangeTo>, exclusive. (If C<rangeFrom> and C<rangeTo> are
equal, the returned list is empty.) The returned list is backed by this list,
so non-structural changes in the returned list are reflected in this list, and
( run in 0.967 second using v1.01-cache-2.11-cpan-f03e8824b8d )