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.
I want to factor out common calculations.
One possible way I see is to use
var result = db._query("RETURN myfuncs::func(@a1, @a2)",
{'@a1': 'val1', '@a2': 'val2}, null, null).next();
But I would like another way if possible.