Iterator
Net::Delicious::Iterator is an iterator class for Net::Delicious thingies. SYNOPSIS use Net::Delicious::Iterator; my @dates = ({...},{...}); my $it = Net::Delicious::Iterator->new("Date",@dates); while (my $d = $it->next()) { # Do stuff with $d here } NOTES It isnt really expected...
Platforms: *nix
License: Freeware | Size: 18.43 KB | Download (101): Net::Delicious::Iterator Download |
SPOPS::Iterator is a class to cycle through results and return SPOPS objects. SYNOPSIS my $iter = $spops_class->fetch_iterator({ where => last_name like ?, value => [ smi% ] }); while ( $iter->has_next ) { my $object = $iter->get_next; print "Object ID: ", $object->id, " at position: ",...
Platforms: *nix
License: Freeware | Size: 286.72 KB | Download (88): SPOPS::Iterator Download |
Iterator::Util Perl package contains essential utilities for the Iterator class. SYNOPSIS use Iterator::Util; # Transform sequences $iterator = imap { transformation code } $some_other_iterator; # Filter sequences $iterator = igrep { condition code } $some_other_iterator; # Range of...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (93): Iterator::Util Download |
Iterator::Misc Perl module package contains miscellaneous iterator functions. SYNOPSIS use Iterator::Misc; # Permute the elements of a list: $iter = ipermute (@items); # Select only every nth value of an iterator $iter = inth ($n, $another_iterator); # Randomly select iterator values...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (88): Iterator::Misc Download |
Iterator is a general-purpose iterator class. SYNOPSIS use Iterator; # Making your own iterators from scratch: $iterator = Iterator->new ( sub { code } ); # Accessing an iterators values in turn: $next_value = $iterator->value(); # Is the iterator out of values? $boolean =...
Platforms: *nix
License: Freeware | Size: 22.53 KB | Download (89): Iterator Download |
Iterator::IO is a Perl module with filesystem and stream iterators. SYNOPSIS use Iterator::IO; # Return the names of files in a directory (except . and ..) $iter = idir_listing ($path); # Return all the files in a directory tree, one at a time. # Like File::Find, in slow motion. $iter...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (88): Iterator::IO Download |
Array::Iterator is a simple class for iterating over Perl arrays. SYNOPSIS use Array::Iterator; # create an iterator with an array my $i = Array::Iterator->new(1 .. 100); # create an iterator with an array reference my $i = Array::Iterator->new(@array); # create an iterator with a...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (99): Array::Iterator Download |
Iterator::BreakOn is a Perl module to create iterators with control flow breaks. SYNOPSIS use Iterator::BreakOn; # # get a generic data source with a next method implemented whom # returns a generic object # # in this example the order of the items in the data stream is assumed # to...
Platforms: *nix
License: Freeware | Size: 13.31 KB | Download (89): Iterator::BreakOn Download |
This script is an iterator that can be used to walk through directories.This class is intended to provide an iterator version of the os.listdir function. The interesting property of the iterator is that you can control if you want a deep iteration of directories with the 'deep' member.After...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Directory Iterator Download |
This script presents a general purpose file object iterator cum file object proxy class.It provides a class that gives several iterator functions to read a text file by characters, words, lines, paragraphs or blocks. It also acts as a proxy for the wrapped file object. ts as a pOne way to do it...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): General purpose file iterator class Download |
The basic iterator for a list doesn't allow one to skip forward (except with "continue"), or backward (at all), nor does it behave well if the list is modified while it is being traversed. This script is NOT the be-all and end-all of improved iterators, but it gives a few ideas of how a better...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): List iterator with advance() and regress() Download |
This script creates an iterator which returns N-tuples built from the incoming items from another iterator. It is useful, for example, when you need items two at a time.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Iterator to return items N-at-a-time Download |
Randomized integer range iterator script iterates over all values of a range in random order.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Randomized integer range iterator Download |
This script groups the elements returned by an iterator into n-tuples. The final tuple may be padded with Nones.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Group iterator into n-tuples with None padding Download |
Text Iterator is a information collect and web page make tool. If you have a formated document, but some special text is different, Text Iterator will do you a favor. To that formated document you can define a template, and the place where the text is different, you can place there a Named Tag(we...
Platforms: Windows
License: Freeware | Size: 1.24 MB | Download (99): Text Iterator Download |
This script includes a collection of small utility functions for iterators (all functions can also be used with normal sequences). Among other things, the module provides generator ("lazy") versions of the built-in sequence-manipulation functions. The generators can be combined to produce a more...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Iterator Utilities Download |
This script allows you to choose a random object from an iterated list. Each item has an equal chance of being picked. The iterator is processed only once, and only the selected items are stored, making this function memory efficid only thbr />
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Picking random items from an iterator Download |
There is a base class that provides abstract range calculation based on the number of page and number of result rows per page to retrieve.The iterator interface is also implemented to traverse query result rows.Limit Result Set Iterator also comes with an implementation class to execute and...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (41): Limit Result Set Iterator Download |
This function provides a simple iterator for the lines of a file-like object. (It also provides a flag for removing/retaining trailing newlines.) I ran into the problem a number of times that I wanted to read-in a very large file-like object (say a GB or two) line by line. This is a problem for...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (63): Iterating through large file-like objects Download |
This script defines permIter() function that takes a sequence and returns an iterator that goes through all possible permutations of that sequence.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Permutations using generators Download |