Chapter 14.4.3. Functions Unique to MochiKit.Iter
As useful as Python’s itertools module is, MochiKit.Iter adds some other functions, too.
applymap(func, seq[, self]) Calls func with each element of seq (in the context of self, if supplied), returning a list of the return values from the calls to func
every(i, func) Returns true if func(i.next()) is true for each item in the iterator
exhaust(i) Use up the iterable without saving the results anywhere
forEach(i, func[, self]) Call func for each element of i without saving the return values
iextend(lst, i) Adds the elements from i to lst
some(i, func) Returns true if func(i.next()) is true for at least one item
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.