James Stroud jstroud at mbi.ucla.edu writes:
C.L. wrote:
I was looking for a function or method that would return the index to the
first matching element in a list. ...
... __please don't be overly defensive__ ...
The amount of typing wasted to defend design decisions such as this can
I was looking for a function or method that would return the index to the first
matching element in a list. Coming from a C++ STL background, I thought it might
be called find. My first stop was the Sequence Types page of the Library
Reference (http://docs.python.org/lib/typesseq.html); it wasn't