Lazy streams using generators

Category: Python - Education

This class allows you to use generators as more list-like streams. The chief advantage is that it is impossible to iterate through a generator more than once, while a stream can be re-used like a list. Date: 11 April, 2012


Stream Generator - List Manipulation - List Tool - Stream - Generator - List

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

The user can immediately locate what he has been searching for in the long options list just by typing.

developer Developer: javascriptsource.com
license License: Freeware
operating systems Operating System: All


This script allows you to sort recursively nested lists if iterable is a mutable sequence type.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Fifo mean "First In First Out".

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script contains a function that given a sequence and a number n as parameters, returns the th permutation of the sequence (always as a list).

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script implements set operations using sorted lists as the underlying data structure.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script implements set operations using sorted lists as the underlying data structure.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This script contains a function that allows you to easily sort a list by multiple columns in ascending and descending order similar in function to the ORDER BY clause in SQL.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


For people who prefer object-oriented style, this wrapper class provides a cleaner interface to the functions in the heapq module.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script contains some useful functions which work on infinite lists, including generalized versions of map, filter, zip on gLists.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All