View on
MetaCPAN
Joachim Bargsten > Bio-Grid-Run-SGE-0.032 > Bio::Grid::Run::SGE::Iterator::Consecutive

Download:
Bio-Grid-Run-SGE-0.032.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.0101   Source   Latest Release: Bio-Grid-Run-SGE-0.060

NAME ^

  Bio::Grid::Run::SGE::Iterator::Consecutive - iterate consecutively through an index

SYNOPSIS ^

  my $index = Bio::Grid::Run::SGE::Index->new( format => 'Dummy', idx_file => undef )->create;

  my $it = Bio::Grid::Run::SGE::Iterator::Consecutive->new( indices => [$index] );

  # iterate from combinations 3 to 8
  $it->start( [ 3, 8 ] );

  my @result;
  while ( my $combination = $it->next_comb ) {
    push @result, $comb->[0];
  }

DESCRIPTION ^

This is the simplest iterator, it runs through a range of elements in an index.

ADDITIONAL METHODS ^

This index inherits methods from Bio::Grid::Run::SGE::Role::Iterable. See documentation at Bio::Grid::Run::SGE::Role::Iterable for more information.

Only additional methods are documented here.

SEE ALSO ^

Bio::Grid::Run::SGE::Role::Iterable, Bio::Grid::Run::SGE::Iterator

AUTHOR ^

jw bargsten, <jwb at cpan dot org>

syntax highlighting: