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. Kent