code: def add(name, num, minimum=0, maximum=0, ref=None):
      '''
      Adds together the ``num`` most recent values. Requires a list.
  
      USAGE:
  
      .. code-block:: yaml
  
          foo:
            calc.add:
              - name: myregentry
              - num: 5
      '''
      return calc(
          name=name,
          num=num,
          oper='add',
          minimum=minimum,
          maximum=maximum,
          ref=ref
      f add(name, num, minimum=0, maximum=0, ref=None):
      '''
      Adds together the ``num`` most recent values. Requires a list.
  
      USAGE:
  
      .. code-block:: yaml
  
          foo:
            calc.add:
              - name: myregentry
              - num: 5
      '''
      return calc(
          name=name,
          num=num,
          oper='add',
          minimum=minimum,
          maximum=maximum,
          ref=ref
      )
docs: Adds together the ``num`` most recent values. Requires a list.
  
      USAGE:
  
      .. code-block:: yaml
  
          foo:
            calc.add:
              - name: myregentry
              - num: 5