code: def append(self, function, update=True):
          
          self._funcs.append(function)
          self._add_dep(function)
          if update:
              self._update()
docs: Append a new function to the end of this chain.