title: How to concat multiple functions in python
body: <p>How to do this in python?</p>
  
  <pre><code>def f(a, b):
      return a, b+2, b+3
  def g(a, b, c):
     return a+b+c
  </code></pre>
  
  <p>How to get something like <code>k = f+g</code> hence that</p>
  
  <pre><code>k(a, b) is g(f(a,b))
  </code></pre>
  
  <p>Note that this is an abstract question. I wonder whether there's a function that can return a concat of <code>f+g</code> or even concat([...]) generally working regardless of the args of <code>f</code>.</p>
  
  <p>In another word, I want a function whose args is <code>f</code> and <code>g</code> and returns <code>k</code>:</p>
  
  <pre><code>def concat(f,g):
    return something_equivalent_to_k_above
  </code></pre>