Pod-Abstract

 view release on metacpan or  search on metacpan

lib/Pod/Abstract/Tree.pm  view on Meta::CPAN

    } else {
        my $before_target = $self->{nodes}[$idx + 1];
        return $self->insert_before($before_target, $node);
    }
}

=head2 unshift

Remove the first node from the node list and return it.

Unshift takes linear time - it has to relocate every other element in
id_map so that they stay in line.

=cut

sub unshift {
    my $self = shift;
    my $node = shift;

    if($node->attached) {
        $node->detach;



( run in 0.332 second using v1.01-cache-2.11-cpan-71847e10f99 )