Salvation::MacroProcessor::Iterator::Compliance - Salvation::MacroProcessor::Iterator-compatible iterator interface
Moose
Following methods should be implemented by a class in order to be compatible with Salvation::MacroProcessor::Iterator.
$object -> first()
Returns first element of a list.
$object -> last()
Returns last element of a list.
$object -> seek( $position )
Sets position of an iterator to $position.
$position
$object -> next()
Returns element at current position, then increases position by one.
$object -> count()
Returns elements count.
$object -> to_start()
Sets position of an iterator to start.
$object -> to_end()
Sets position of an iterator to end.
$object -> __position()
Returns current position of an iterator.
$object -> prev()
Returns element at current position, then decreases position by one.
To install Salvation::MacroProcessor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Salvation::MacroProcessor
CPAN shell
perl -MCPAN -e shell install Salvation::MacroProcessor
For more information on module installation, please visit the detailed CPAN module installation guide.