The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mango::Iterator - Module representing a collection of results

SYNOPSIS

    my $users = $provider->search;
    
    while (my $user = $users->next) {
        print $user->id;
    };

DESCRIPTION

Mango::Iterator is a collection of results to be iterated or looped through. This module is a subclass of Handel::Iterator. See Handel::Iterator for more information about what features and methods are supported.

CONSTRUCTOR

new

Arguments: \%args

Creates a new iterator based on the type of data passed into args.

    my $it = Mango::Iterator->new({
        data => \@list
    });

METHODS

create_result

Transforms Handel based object into Mango objects. For non Handel objects, the original object is just returned.

SEE ALSO

Handel::Iterator

AUTHOR

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/