parameters: (self, haystack, needle)
return_statement: return -1
docstring: :type haystack: str
          :type needle: str
          :rtype: int
docstring_summary: :type haystack: str
          :type needle: str
          :rtype: int
docstring_tokens: : type haystack : str : type needle : str : rtype : int
function: def strStr(self, haystack, needle):
          """
          :type haystack: str
          :type needle: str
          :rtype: int
          """
          for i in xrange(len(haystack) - len(needle) + 1):
              if haystack[i : i + len(needle)] == needle:
                  return i
          return -1
function_tokens: def strStr ( self , haystack , needle ) : for i in xrange ( len ( haystack ) - len ( needle ) + 1 ) : if haystack [ i : i + len ( needle ) ] == needle : return i return - 1