#NEWLINE# def find( self , func ) : #NEWLINE# #INDENT# '\n        Finds the first element of the sequence that satisfies func. If no such element exists,\n        then return None.\n\n        >>> seq(["abc", "ab", "bc"]).find(lambda x: len(x) == 2)\n        \'ab\'\n\n        :param func: function to find with\n        :return: first element to satisfy func or None\n        ' #NEWLINE# for element in self : #NEWLINE# #INDENT# if func ( element ) : #NEWLINE# #INDENT# return element #NEWLINE# #UNINDENT# #UNINDENT# return None