docs: def degenerate(enumerable):
      '''
      Converts generators to lists
  
      degenerate(xrange(2))
      # => [0, 1]
      '''
      if (isinstance(enumerable, xrange) or
          inspect.isgeneratorfunction(enumerable) or
          inspect.isgenerator(enumerable)):
          return list(enumerable)
      return enumerable