http://docs.python.org/lib/itertools-functions.html
The most confusing one IMO is tee. Here's another explanation of that:
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.
-BrendanOn 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
