title: Arangodb: Can I call a user function from a user function?
body: <p>Since user-functions are not allowed to have side-effects with respect to the data, I wondered if it's possible to call one function from the other.</p>
  
  <p>I want to factor out common calculations. </p>
  
  <p>One possible way I see is to use </p>
  
  <pre><code>var result = db._query("RETURN myfuncs::func(@a1, @a2)",
                         {'@a1': 'val1', '@a2': 'val2}, null, null).next();
  </code></pre>
  
  <p>But I would like another way if possible.</p>