[Tutor] err... list.pairs()?

Kent Johnson kent37 at tds.net
Sun Nov 2 21:50:48 CET 2008

On Sun, Nov 2, 2008 at 3:40 PM, spir <denis.spir at free.fr> wrote:
> That's it, thank you! I was looking among sequence methods instaed if
> built-in functions.

You're welcome. Making it a function instead of a method allows it to
be applied to any kind of sequence - actually any kind of iterable,
including generator expressions and user-defined iterators.


More information about the Tutor mailing list