parameters: (self, nums)
return_statement: return result
docstring: :type nums: List[int]
          :rtype: int
docstring_summary: :type nums: List[int]
          :rtype: int
docstring_tokens: : type nums : List [ int ] : rtype : int
function: def arrayNesting(self, nums):
          """
          :type nums: List[int]
          :rtype: int
          """
          result = 0
          for num in nums:
              if num is not None:
                  start, count = num, 0
                  while nums[start] is not None:
                      temp = start
                      start = nums[start]
                      nums[temp] = None
                      count += 1
                  result = max(result, count)
          return result
function_tokens: def arrayNesting ( self , nums ) : result = 0 for num in nums : if num is not None : start , count = num , 0 while nums [ start ] is not None : temp = start start = nums [ start ] nums [ temp ] = None count += 1 result = max ( result , count ) return result