code: def repeat(sequence):
      ''' Return a driver function that can advance a repeated of values.
  
      .. code-block:: none
  
          seq = [0, 1, 2, 3]
  
          # repeat(seq) => [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ...]
  
      Args:
          sequence (seq) : a sequence of values for the driver to bounce
  
      '''
      N = len(sequence)
      def f(i):
          return sequence[i%N]
      return partial(force, sequence=_advance(f)f repeat(sequence):
      ''' Return a driver function that can advance a repeated of values.
  
      .. code-block:: none
  
          seq = [0, 1, 2, 3]
  
          # repeat(seq) => [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ...]
  
      Args:
          sequence (seq) : a sequence of values for the driver to bounce
  
      '''
      N = len(sequence)
      def f(i):
          return sequence[i%N]
      return partial(force, sequence=_advance(f))
docs: Return a driver function that can advance a repeated of values.
  
      .. code-block:: none
  
          seq = [0, 1, 2, 3]
  
          # repeat(seq) => [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ...]
  
      Args:
          sequence (seq) : a sequence of values for the driver to bounce