Filewatcher File Search File Search
Catalog
Content Search
» » » » »

libtie-array-iterable-perl

module allowing creation of iterators for lists and arrays

Tie::Hash::Iterable allows one to create iterators for lists and arrays. The concept of iterators is borrowed from the C++ STL [1], in which most of the collections have iterators, though this class does not attempt to fully mimic it.

Typically, in C/C++ or Perl, the 'easy' way to visit each item on a list is to use a counter, and then a for( ;; ) loop. However, this requires knowledge on how long the array is to know when to end. In addition, if items are removed or inserted into the array during the loop, then the counter will be incorrect on the next run through the loop, and will cause problems.

While some aspects of this are fixed in Perl by the use of for or foreach, these commands still suffer when items are removed or added to the array while in these loops. Also, if one wished to use break to step out of a foreach loop, then restart where they left at some later point, there is no way to do this without maintaining some additional state information.

Homepage:
Package version:0.03-1
Architecture:all
Distribution:Debian
Filename:libtie-array-iterable-perl_0.03-1_all.deb

/usr/share/man/man3/Tie::Array::Iterable.3pm.gz

Iterable(3pm)    User Contributed Perl Documentation   Iterable(3pm)



NAME
       Tie::Array::Iterable - Allows creation of iterators for lists
       and arrays

SYNOPSIS
         use Tie::Array::Iterable qw( quick );

         my $iterarray = new Tie::Array::Iterable( 1..10 );
         for( my $iter = $iterarray->start() ; !$iter->at_end() ; $iter->next() ) {
               print $iter->index(
more»

/usr/share/man/man3/Tie::Array::Iterable::BackwardIterator.3pm.gz

Iterable::BackwarUserrContributed PerIterable::BackwardIterator(3pm)



NAME
       Tie::Array::Iterable::ForwardIterator - Forward Iterator
       object

DESCRIPTION
       Please see the Tie::Array::Iterable documentation for full
       usage.

AUTHOR
       Michael K. Neylon <mneylon-pm@masemware.com>

COPYRIGHT
       Copyright 2001 by Michael K. Neylon
       <mneylon-pm@masemware.com>.

  
more»

/usr/share/man/man3/Tie::Array::Iterable::ForwardIterator.3pm.gz

Iterable::ForwardUseraContributed PerlIterable::ForwardIterator(3pm)



NAME
       Tie::Array::Iterable::ForwardIterator - Forward Iterator
       object

DESCRIPTION
       Please see the Tie::Array::Iterable documentation for full
       usage.

AUTHOR
       Michael K. Neylon <mneylon-pm@masemware.com>

COPYRIGHT
       Copyright 2001 by Michael K. Neylon
       <mneylon-pm@masemware.com>.

  
more»

/usr/share/doc/libtie-array-iterable-perl/changelog.Debian.gz

libtie-array-iterable-perl (0.03-1) unstable; urgency=low

  * Initial Release. (Closes: #635374)

 
more»

/usr/share/doc/libtie-array-iterable-perl/changelog.gz

Revision history for Perl extension Tie::Array::Iterable.

$Log: Changes,v $
Revision 0.03  2001/11/
more»

/usr/share/doc/libtie-array-iterable-perl/copyright

Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
Maintainer: 
more»

Browse inside libtie-array-iterable-perl_0.03-1_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libtie-array-iterable-perl_0.03-1_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com