Ah, these are all modeled on python's itertools functions of the same name.  The python docs are fairly helpful:
http://docs.python.org/lib/itertools-functions.html

The most confusing one IMO is tee.  Here's another explanation of that:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305588

On 12/9/05, Brendan Crosser-McGay <[EMAIL PROTECTED] > wrote:
dropwhile(pred, seq), islice(seq, [start,] stop[, step]), takewhile(pred, seq), tee(iterable, n=2), exhaust(iterable).

I think alot of these its just a matter of using terminology I'm not familiar with, but concepts I do understand completely.

-Brendan


On 12/9/05, Jonathan Ellis < [EMAIL PROTECTED]> wrote:
On 12/8/05, Brendan Crosser-McGay <[EMAIL PROTECTED]> wrote:
Hi guys,
This is just a little request, I was wondering if anyone has some simple examples of all the iteration functions being used.  I feel like I'm missing out on some really slick functions.  Since they aren't all readily obvious how they work just from their name.  Plus I'm more of a work by example kinda guy :)

Which in particular are opaque to you?

--
Jonathan Ellis
http://spyced.blogspot.com




--
Jonathan Ellis
http://spyced.blogspot.com

Reply via email to