There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Iterator::Flex::Buffer - Buffer Iterator Class

VERSION

version 0.32

METHODS

new

$iterator = Ierator::Flex::Buffer->new( $iterable, $capacity, ?\%pars );

Returns an iterator which on the first call to next extracts $capacity elements from $iterable, stores them in a buffer, and then returns them one by one. When the buffer is exhausted, it repeats the process.

If $capacity is zero, the $iterator is drained into a buffer.

$iterable is converted into an iterator via "to_iterator" in Iterator::Flex::Factory if required.

The %pars hash may contain standard signal parameters.

The returned iterator supports the following capabilities:

current
next
prev
rewind
reset
freeze

SUPPORT

Bugs

Please report any bugs or feature requests to bug-iterator-flex@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=Iterator-Flex

Source

Source is available at

https://gitlab.com/djerius/iterator-flex

and may be cloned from

https://gitlab.com/djerius/iterator-flex.git

SEE ALSO

Please see those modules/websites for more information related to this module.

AUTHOR

Diab Jerius <djerius@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007