GpsGate Server JavaScript API

Iter  1.0.0

GpsGate Server JavaScript API > Iter
Search:
 
Filters

Module: Iter

Copyright Franson Technology AB, Sweden, 2009
http://gpsgate.com, http://franson.com

author Fredrik Blomqvist

Iterator module
Compatible with MochiKit.Iter protocol (will be added to JavaScript in v1.7) basically same as the Python itertools module.

note that iterators are not cloneable (in general) since they are (allowed to be) implemented using closures.

tree Iters can be easily be adapted to traverse any tree structure like html-DOM, SVG/VML, quadtrees etc. (for structures supporting getNextSibling also (like DOM..) you can create completely stack-less iterators but I doubt it would be worth it unless you have very large graphs)

todo: flattenIter, bidirectionalIter (also see Python::itertools combinatoric generators) etc

This module contains the following classes:


Copyright © 2009 Franson Technology AB, Sweden. All rights reserved.